/* Admin Body */
.admin-body {
    background: linear-gradient(135deg, #1a2530 0%, #2c3e50 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
}

.login-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #7f8c8d;
    font-size: 1rem;
}

/* Login Form */
.login-form {
    margin-bottom: 2rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.login-form label i {
    color: #3498db;
    margin-right: 0.3rem;
}

.login-form input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.btn-block {
    width: 100%;
}

.error-message {
    background: #fee;
    color: #c0392b;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 4px solid #e74c3c;
}

.error-message i {
    margin-right: 0.5rem;
}

/* Login Footer */
.login-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.login-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #2980b9;
}

.login-footer i {
    margin-right: 0.3rem;
}

.login-info {
    background: #e8f4f8;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 1rem;
    color: #2c3e50;
    font-size: 0.9rem;
}

/* Admin Header */
.admin-header {
    background: linear-gradient(135deg, #2c3e50 0%, #4a5f7f 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-nav .logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-user {
    font-weight: 500;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Dashboard Container */
.dashboard-container {
    background: #f0f2f5;
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
}

/* Statistics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.stat-total .stat-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.stat-pending .stat-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.stat-approved .stat-icon {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.stat-completed .stat-icon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.stat-content h3 {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.chart-card h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.chart-card h3 i {
    color: #3498db;
    margin-right: 0.5rem;
}

/* Table Controls */
.table-controls {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filters {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

.filter-select,
.search-input {
    padding: 0.6rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.filter-select:focus,
.search-input:focus {
    outline: none;
    border-color: #3498db;
}

.search-input {
    min-width: 250px;
}

.actions {
    display: flex;
    gap: 1rem;
}

/* Applicants Preview Section */
.applicants-preview-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.applicants-preview-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.applicants-preview-card h3 i {
    color: #3498db;
    margin-right: 0.5rem;
}

.applicants-preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.applicant-preview-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.applicant-preview-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.applicant-preview-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.applicant-preview-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
}

.applicant-preview-info {
    flex: 1;
    min-width: 0;
}

.applicant-preview-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.2rem;
}

.applicant-preview-company {
    font-size: 0.9rem;
    color: #7f8c8d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.applicant-preview-details {
    font-size: 0.85rem;
    color: #555;
}

.applicant-preview-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.applicant-preview-detail-item:last-child {
    margin-bottom: 0;
}

.applicant-preview-detail-item i {
    width: 16px;
    color: #3498db;
}

/* Table Card */
.table-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.table-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.table-card h3 i {
    color: #3498db;
    margin-right: 0.5rem;
}

.table-responsive {
    overflow-x: auto;
}

.applications-table {
    width: 100%;
    border-collapse: collapse;
}

.applications-table thead {
    background: #f8f9fa;
}

.applications-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e0e0e0;
}

.applications-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.applications-table tbody tr {
    transition: background-color 0.2s ease;
}

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

.empty-state {
    text-align: center;
    padding: 3rem !important;
    color: #95a5a6;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.empty-state p {
    font-size: 1.1rem;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    padding: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    border-radius: 5px;
}

.btn-icon:hover {
    background: #f0f0f0;
}

.btn-icon.btn-view {
    color: #3498db;
}

.btn-icon.btn-edit {
    color: #f39c12;
}

.btn-icon.btn-delete {
    color: #e74c3c;
}

/* Modal Enhancements */
.modal-large .modal-content {
    max-width: 700px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: #2c3e50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #95a5a6;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #2c3e50;
}

.modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    margin-top: 1.5rem;
}

/* Detail Content */
.detail-section {
    margin-bottom: 2rem;
}

.detail-section h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.detail-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-label {
    font-weight: 600;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.detail-value {
    color: #2c3e50;
    font-size: 1.1rem;
}

/* Form Control */
.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

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

.btn-danger:hover {
    background: #c0392b;
}

.warning-text {
    color: #e74c3c;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-grid,
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        min-width: 100%;
    }
    
    .actions {
        width: 100%;
    }
    
    .actions .btn {
        flex: 1;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-item.full-width {
        grid-column: 1;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .applicants-preview-list {
        grid-template-columns: 1fr;
    }
    
    /* 모바일에서 테이블을 카드로 변경 */
    .table-responsive {
        overflow-x: visible;
    }
    
    .applications-table thead {
        display: none;
    }
    
    .applications-table tbody {
        display: block;
    }
    
    .applications-table tbody tr {
        display: block;
        background: #f8f9fa;
        margin-bottom: 1rem;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        padding: 1rem;
        border: 2px solid #e0e0e0;
    }
    
    .applications-table tbody tr:hover {
        background: #f8f9fa;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    
    .applications-table td {
        display: block;
        text-align: left;
        padding: 0.7rem 0;
        border-bottom: 1px solid #e0e0e0;
        position: relative;
        padding-left: 45%;
    }
    
    .applications-table td:last-child {
        border-bottom: none;
        padding-top: 1rem;
    }
    
    .applications-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 40%;
        padding-right: 1rem;
        font-weight: 600;
        color: #2c3e50;
        text-align: left;
    }
    
    .applications-table .action-buttons {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        justify-content: flex-start;
        padding-left: 0;
    }
    
    .applications-table td:last-child::before {
        content: '작업';
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 2rem;
    }
    
    .logo-large {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .applications-table td {
        padding-left: 35%;
        font-size: 0.9rem;
    }
    
    .applications-table td::before {
        width: 30%;
        font-size: 0.85rem;
    }
}
