/* Modern Premium Design System - Shared Styles */

/* Container & Layout */
.modern-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.page-title h1 {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.page-title p {
    color: #7f8c8d;
    margin: 0;
    font-size: 15px;
}

/* Buttons */
.btn-primary-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    color: white;
}

.btn-secondary-modern {
    background: white;
    color: #7f8c8d;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    border: 2px solid #e8e8e8;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary-modern:hover {
    border-color: #667eea;
    color: #667eea;
}

.btn-success-modern {
    background: linear-gradient(135deg, #42e695 0%, #3bb2b8 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(66, 230, 149, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-success-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 230, 149, 0.5);
    color: white;
}

.btn-info-modern {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-info-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
    color: white;
}

/* Cards */
.card-modern {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.card-header-modern {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px 30px;
    border-bottom: 2px solid #e0e0e0;
}

.card-header-modern h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

/* Tables */
.table-modern {
    width: 100%;
    border-collapse: collapse;
}

.table-modern thead th {
    background: #fafafa;
    padding: 18px 25px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e8e8e8;
}

.table-modern tbody td {
    padding: 20px 25px;
    border-bottom: 1px solid #f5f5f5;
    color: #2c3e50;
}

.table-modern tbody tr {
    transition: all 0.3s ease;
}

.table-modern tbody tr:hover {
    background: #f8f9ff;
}

/* Status Badges */
.badge-modern {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #cfe2ff;
    color: #084298;
}

.badge-purple {
    background: #e7d5ff;
    color: #5a189a;
}

.badge-gray {
    background: #e8e8e8;
    color: #7f8c8d;
}

.badge-gradient {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

/* Forms */
.form-input-modern,
.form-select-modern,
.form-textarea-modern {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
    font-family: inherit;
}

.form-input-modern:focus,
.form-select-modern:focus,
.form-textarea-modern:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-label-modern {
    display: block;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.form-label-modern i {
    color: #667eea;
    margin-right: 8px;
}

/* Links */
.link-modern {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.link-modern:hover {
    color: #764ba2;
}

.link-success {
    color: #28a745;
}

.link-success:hover {
    color: #218838;
}

.link-danger {
    color: #e74c3c;
}

.link-danger:hover {
    color: #c0392b;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.empty-state-text {
    color: #7f8c8d;
    font-size: 16px;
}

/* Pagination */
.pagination-wrapper {
    padding: 20px 25px;
    border-top: 2px solid #f0f0f0;
}

/* Alerts */
.alert-modern {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 600;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 5px solid #28a745;
    color: #155724;
}

.alert-danger {
    background: #fee;
    border-left: 5px solid #e74c3c;
    color: #c0392b;
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #e1f5fe 100%);
    border-left: 5px solid #2196f3;
    color: #1976d2;
}

/* Utility Classes */
.flex-center {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-modern {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.text-primary {
    color: #667eea;
}

.text-muted {
    color: #7f8c8d;
}

.text-dark {
    color: #2c3e50;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 1rem;
}