/* 관리자 페이지 스타일 */
.admin-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pig-pink-light) 0%, var(--pig-white) 100%);
    padding: 20px;
}

.admin-login-card {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: var(--pig-border-radius);
    padding: 40px;
    box-shadow: var(--pig-shadow);
    border: 2px solid var(--pig-pink-light);
    max-width: 400px;
    width: 100%;
}

.admin-header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-header h1 {
    color: var(--pig-brown);
    margin: 20px 0 10px 0;
    font-size: 2rem;
}

.admin-header p {
    color: var(--pig-black);
    font-size: 1rem;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: var(--pig-border-radius);
    margin-bottom: 20px;
    border: 1px solid #ffcdd2;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--pig-brown);
    font-weight: 500;
    font-size: 1rem;
}

.form-group input {
    padding: 12px 15px;
    border: 2px solid var(--pig-pink-light);
    border-radius: var(--pig-border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--pig-pink);
    box-shadow: 0 0 0 3px rgba(255, 182, 193, 0.2);
}

.admin-btn {
    background: var(--pig-brown);
    color: white;
    border: none;
    padding: 15px;
    border-radius: var(--pig-border-radius);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.admin-btn:hover {
    background: var(--pig-brown-light);
    transform: translateY(-2px);
    box-shadow: var(--pig-shadow);
}

.admin-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--pig-pink-light);
}

.admin-footer p {
    color: var(--pig-black);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.back-link {
    color: var(--pig-brown);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--pig-brown-light);
}

/* 대시보드 스타일 */
.admin-dashboard {
    min-height: 100vh;
    background: var(--pig-gray);
}

.admin-nav {
    background: var(--pig-brown);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--pig-shadow);
}

.admin-nav h1 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.admin-nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-logout {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.admin-logout:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-content {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.admin-card {
    background: white;
    border-radius: var(--pig-border-radius);
    padding: 25px;
    box-shadow: var(--pig-shadow);
    border: 2px solid var(--pig-pink-light);
}

.admin-card h2 {
    color: var(--pig-brown);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: linear-gradient(135deg, var(--pig-pink-light), var(--pig-white));
    padding: 20px;
    border-radius: var(--pig-border-radius);
    text-align: center;
    border: 2px solid var(--pig-pink);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pig-brown);
    display: block;
}

.stat-label {
    color: var(--pig-black);
    font-size: 0.9rem;
    margin-top: 5px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--pig-pink-light);
}

.admin-table th {
    background: var(--pig-pink-light);
    color: var(--pig-brown);
    font-weight: 500;
}

.admin-table tr:hover {
    background: rgba(255, 182, 193, 0.1);
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-edit,
.btn-delete {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-edit {
    background: var(--pig-pink);
    color: white;
}

.btn-edit:hover {
    background: var(--pig-pink-dark);
}

.btn-delete {
    background: #f44336;
    color: white;
}

.btn-delete:hover {
    background: #d32f2f;
}

.success-message {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 15px;
    border-radius: var(--pig-border-radius);
    margin-bottom: 20px;
    border: 1px solid #c8e6c9;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .admin-nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .admin-nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .admin-content {
        padding: 20px;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-table {
        font-size: 0.9rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}
