/* EH Group Manager Styles */

/* Main Container */
.eh-manager-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1000px;
    margin: 20px auto;
    padding: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.eh-manager-container h2 {
    margin: 0;
    padding: 24px 24px 16px;
    font-size: 24px;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
}

/* Alert Messages */
.eh-alert {
    margin: 16px 24px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.eh-alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.eh-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Tabs */
.eh-tabs {
    display: flex;
    gap: 4px;
    padding: 0 24px;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}

.eh-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #64748b;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    top: 2px;
}

.eh-tab:hover {
    color: #334155;
    background: #f1f5f9;
}

.eh-tab.active {
    color: #0f172a;
    border-bottom-color: #3b82f6;
    background: #fff;
}

/* Tab Content */
.eh-tab-content {
    padding: 24px;
}

.eh-tab-pane {
    display: none;
}

.eh-tab-pane.active {
    display: block;
}

/* Form Styles */
.eh-form-container {
    max-width: 600px;
}

.eh-form-group {
    margin-bottom: 20px;
}

.eh-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.eh-input,
.eh-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.eh-input:focus,
.eh-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.eh-input::placeholder {
    color: #9ca3af;
}

/* Buttons */
.eh-button-container {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.eh-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eh-btn-primary {
    background: #3b82f6;
    color: #fff;
}

.eh-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.eh-btn-primary:active {
    transform: translateY(0);
}

/* Manage Table */
.eh-manage-container {
    min-height: 200px;
}

.eh-no-groups {
    text-align: center;
    color: #6b7280;
    padding: 60px 20px;
    font-size: 15px;
}

.eh-table-wrapper {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 20px;
}

.eh-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.eh-table thead {
    background: #f9fafb;
}

.eh-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e5e7eb;
}

.eh-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.eh-table tbody tr:hover {
    background: #f9fafb;
}

.eh-table tbody tr:last-child td {
    border-bottom: none;
}

.eh-group-current {
    font-weight: 500;
    color: #1f2937;
}

.eh-day-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.eh-group-edit .eh-input {
    margin: 0;
}

/* Delete Button */
.eh-btn-delete {
    width: 32px;
    height: 32px;
    padding: 0;
    background: #fff;
    border: 1px solid #ef4444;
    color: #ef4444;
    border-radius: 6px;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eh-btn-delete:hover {
    background: #ef4444;
    color: #fff;
    transform: scale(1.05);
}

.eh-btn-delete:active {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
    .eh-manager-container {
        margin: 10px;
        border-radius: 6px;
    }

    .eh-manager-container h2 {
        padding: 20px 16px 12px;
        font-size: 20px;
    }

    .eh-tab-content {
        padding: 16px;
    }

    .eh-tabs {
        padding: 0 16px;
    }

    .eh-tab {
        padding: 10px 16px;
        font-size: 14px;
    }

    .eh-alert {
        margin: 12px 16px;
    }

    .eh-table {
        min-width: 500px;
    }

    .eh-button-container {
        flex-direction: column;
    }

    .eh-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .eh-tab {
        padding: 10px 12px;
        font-size: 13px;
    }

    .eh-table th,
    .eh-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}