@charset "utf-8";

/* ========================================
   Style - Modern Design
   ======================================== */

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

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    color: #2c3e50;
    background-color: #f5f6fa;
    line-height: 1.6;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

/* Top Header */
.top-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-header .title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Sidebar */
.sidebar {
    background-color: #ffffff;
    min-height: calc(100vh - 70px);
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

.sidebar .nav-section {
    margin-bottom: 25px;
}

.sidebar .nav-title {
    font-size: 13px;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    border-bottom: 1px solid #ecf0f1;
}

.sidebar .nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .nav-menu li {
    border-bottom: 1px solid #f8f9fa;
}

.sidebar .nav-menu a {
    display: block;
    padding: 12px 20px;
    color: #2c3e50;
    background-color: #ffffff;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar .nav-menu a:hover {
    background-color: #f8f9fa;
    color: #3498db;
    border-left-color: #3498db;
}

.sidebar .nav-menu a.active {
    background-color: #e8f4fc;
    color: #3498db;
    border-left-color: #3498db;
}

/* Main Content */
.main-content {
    background-color: #f5f6fa;
    padding: 30px;
    min-height: calc(100vh - 70px);
}

.main-content .page-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.main-content .section {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-content .section-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.main-content .section-content {
    color: #5a6c7d;
    line-height: 1.8;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-box .login-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}

.login-box .form-group {
    margin-bottom: 20px;
}

.login-box .form-label {
    display: block;
    font-size: 14px;
    color: #5a6c7d;
    margin-bottom: 8px;
}

.login-box .form-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #dce1e6;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.login-box .form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.login-box .btn-login {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-box .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

.login-box .btn-reset {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    color: #7f8c8d;
    background-color: #f8f9fa;
    border: 1px solid #dce1e6;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.login-box .btn-reset:hover {
    background-color: #ecf0f1;
}

.login-box .login-footer {
    text-align: center;
    margin-top: 30px;
    color: #7f8c8d;
    font-size: 12px;
}

.login-box .company-name {
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

/* Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.data-table th {
    background-color: #3498db;
    color: #ffffff;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ecf0f1;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background-color: #f8f9fa;
    color: #5a6c7d;
    border: 1px solid #dce1e6;
}

.btn-secondary:hover {
    background-color: #ecf0f1;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Alert */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-info {
    background-color: #e8f4fc;
    color: #2980b9;
    border-left: 4px solid #3498db;
}

.alert-warning {
    background-color: #fef9e7;
    color: #f39c12;
    border-left: 4px solid #f39c12;
}

.alert-danger {
    background-color: #fdedec;
    color: #e74c3c;
    border-left: 4px solid #e74c3c;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .login-box {
        margin: 20px;
        padding: 30px;
    }
    
    .top-header .title {
        font-size: 20px;
    }
}
