/* Container */
.itn-timeshift-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Clock Form */
.itn-timeshift-clock-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 30px;
}

.itn-timeshift-time {
    margin-bottom: 30px;
}

#itn-current-time {
    font-size: 48px;
    font-weight: bold;
    color: #2271b1;
    margin-bottom: 10px;
}

#itn-current-date {
    font-size: 18px;
    color: #666;
}

.itn-pin-entry {
    margin-bottom: 30px;
}

.itn-pin-entry label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.itn-pin-entry input {
    width: 200px;
    padding: 12px;
    font-size: 24px;
    text-align: center;
    letter-spacing: 4px;
    border: 2px solid #ddd;
    border-radius: 6px;
    margin: 0 auto;
}

/* Buttons */
.itn-clock-buttons,
.itn-break-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.itn-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.itn-btn-primary {
    background-color: #2271b1;
    color: white;
}

.itn-btn-primary:hover {
    background-color: #135e96;
}

.itn-btn-danger {
    background-color: #dc3545;
    color: white;
}

.itn-btn-danger:hover {
    background-color: #c82333;
}

.itn-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.itn-btn-secondary:hover {
    background-color: #5a6268;
}

/* Employee Information Panel */
.itn-timeshift-info-panel {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.itn-timeshift-info-panel h3 {
    margin: 0 0 20px;
    color: #2271b1;
    font-size: 24px;
}

.itn-info-section {
    margin-bottom: 30px;
}

.itn-info-section h4 {
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f1;
}

.itn-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.itn-info-grid > div {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
}

.itn-info-grid label {
    display: block;
    color: #666;
    margin-bottom: 5px;
}

.itn-info-grid span {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Shifts Table */
.itn-shifts-table {
    margin: 20px 0;
    overflow-x: auto;
}

.itn-shifts-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.itn-shifts-table th,
.itn-shifts-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.itn-shifts-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.itn-shifts-table tr:hover {
    background-color: #f8f9fa;
}

.itn-shifts-table .current-shift {
    background-color: #e8f5e9;
}

.itn-shifts-table .current-shift:hover {
    background-color: #c8e6c9;
}

.no-shifts {
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Messages */
.itn-timeshift-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.itn-message {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
}

.itn-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.itn-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.itn-message-info {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.itn-message-close {
    cursor: pointer;
    font-size: 20px;
    margin-left: 10px;
}

/* Modal */
.itn-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.itn-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .itn-timeshift-container {
        padding: 10px;
    }

    .itn-clock-buttons,
    .itn-break-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .itn-info-grid {
        grid-template-columns: 1fr;
    }

    #itn-current-time {
        font-size: 36px;
    }

    .itn-message {
        min-width: auto;
        width: calc(100% - 40px);
    }
}

/* Employee Dashboard */
.itn-timeshift-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.itn-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.itn-current-status {
    padding: 8px 16px;
    border-radius: 20px;
    background: #f5f5f5;
}

.itn-current-status.active {
    background: #e8f5e9;
    color: #2e7d32;
}

.itn-dashboard-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.itn-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.itn-info-item {
    padding: 15px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.itn-info-item label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 0.9em;
}

.itn-break-controls {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    text-align: center;
}

.itn-break-timer {
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: bold;
}

.itn-summary-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.itn-tab {
    padding: 8px 16px;
    border-radius: 20px;
    background: #eee;
    cursor: pointer;
}

.itn-tab.active {
    background: #007bff;
    color: white;
}

.itn-period-summary {
    display: none;
}

.itn-period-summary.active {
    display: block;
}

.itn-shifts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.itn-shifts-table th,
.itn-shifts-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.itn-shifts-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.itn-dashboard-actions {
    margin-top: 30px;
    text-align: center;
}

/* Button Styles */
.itn-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.itn-btn-primary {
    background: #007bff;
    color: white;
}

.itn-btn-primary:hover {
    background: #0056b3;
}

.itn-btn-secondary {
    background: #6c757d;
    color: white;
}

.itn-btn-secondary:hover {
    background: #545b62;
}

.itn-btn-danger {
    background: #dc3545;
    color: white;
}

.itn-btn-danger:hover {
    background: #c82333;
}

.itn-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Message Styles */
.itn-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 4px;
    color: white;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.itn-message.success {
    background: #28a745;
}

.itn-message.error {
    background: #dc3545;
}

.itn-message.info {
    background: #17a2b8;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
