:root {
    --primary-color: #4a69bd;
    --secondary-color: #6c5ce7;
    --success-color: #20bf6b;
    --danger-color: #eb3b5a;
    --warning-color: #f7b731;
    --info-color: #3867d6;
    --light-color: #f5f6fa;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --card-background: #fff;
    --body-background: #f8f9fa;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/* Header */
.main-header {
    background: linear-gradient(to right, #4a69bd, #6c5ce7);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
}

.main-header h1 {
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.main-header h1 i {
    margin-right: 0.75rem;
    font-size: 1.75rem;
    color: #f7b731;
}

.main-header nav {
    display: flex;
    gap: 0.75rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Cards */
.card {
    background-color: var(--card-background);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(to right, #3867d6, #4a69bd);
    color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header h2 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.card-header h2 i {
    margin-right: 0.75rem;
    color: #f7b731;
}

.card-body {
    padding: 1.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
    background-color: #fff;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 105, 189, 0.25);
}

.search-form {
    display: flex;
    gap: 0.75rem;
}

.search-form input[type="search"] {
    flex: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(to right, #4a69bd, #3867d6);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(to right, #3867d6, #4a69bd);
}

.btn-secondary {
    background: linear-gradient(to right, #6c5ce7, #8c7ae6);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(to right, #8c7ae6, #6c5ce7);
}

.btn-success {
    background: linear-gradient(to right, #20bf6b, #26de81);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(to right, #26de81, #20bf6b);
}

.btn-danger {
    background: linear-gradient(to right, #eb3b5a, #fc5c65);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(to right, #fc5c65, #eb3b5a);
}

.btn-info {
    background: linear-gradient(to right, #3867d6, #45aaf2);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(to right, #45aaf2, #3867d6);
}

.btn-logout {
    background: linear-gradient(to right, #eb3b5a, #fc5c65);
    color: white;
}

.btn-logout:hover {
    background: linear-gradient(to right, #fc5c65, #eb3b5a);
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
}

.btn i {
    margin-right: 0.5rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid transparent;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.alert i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.alert-success {
    background-color: rgba(32, 191, 107, 0.1);
    border-left-color: var(--success-color);
    color: #155724;
}

.alert-error {
    background-color: rgba(235, 59, 90, 0.1);
    border-left-color: var(--danger-color);
    color: #721c24;
}

.alert-warning {
    background-color: rgba(247, 183, 49, 0.1);
    border-left-color: var(--warning-color);
    color: #856404;
}

.alert-info {
    background-color: rgba(56, 103, 214, 0.1);
    border-left-color: var(--info-color);
    color: #0c5460;
}

/* Section Title */
.section-title {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.section-title i {
    margin-right: 0.75rem;
    color: var(--primary-color);
}

/* Manager List */
.manager-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.manager-item {
    background-color: white;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.manager-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #4a69bd, #6c5ce7);
}

.manager-item:nth-child(2n)::before {
    background: linear-gradient(to bottom, #20bf6b, #0fb9b1);
}

.manager-item:nth-child(3n)::before {
    background: linear-gradient(to bottom, #f7b731, #fa8231);
}

.manager-item:nth-child(4n)::before {
    background: linear-gradient(to bottom, #eb3b5a, #fc5c65);
}

.manager-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.manager-item h3 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    color: var(--dark-color);
}

.manager-item h3 i {
    margin-right: 0.75rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.manager-details {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.manager-details p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.manager-details i {
    width: 18px;
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.manager-actions {
    display: flex;
    gap: 0.75rem;
}

.link-container {
    display: flex;
    margin-top: 0.75rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.link-container input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: #f8f9fa;
    font-size: 0.9rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.no-results i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.no-results h3 {
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.no-results p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(to right, #20bf6b, #0fb9b1);
    color: white;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 5rem auto;
    padding: 0 1rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.login-logo h1 {
    font-size: 1.75rem;
    color: var(--dark-color);
}

/* Responsive */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-header nav {
        margin-top: 1rem;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form input[type="search"] {
        margin-bottom: 0.75rem;
    }
    
    .link-container {
        flex-direction: column;
    }
    
    .link-container input {
        width: 100%;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .manager-item, .alert {
    animation: fadeIn 0.5s ease-out forwards;
}
