/* Admin Dashboard Styles */

/* Global Styles */
body {
    font-family: 'Noto Sans KR', 'Roboto', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    overflow-y: auto;
    transition: all 0.3s;
    z-index: 100;
}

.sidebar-logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo h3 {
    color: white;
    margin: 0;
    font-weight: 700;
}

.sidebar-menu {
    padding: 20px 0;
}

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

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu a:hover, 
.sidebar-menu a.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-menu a i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 15px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 30px;
    transition: all 0.3s;
}

.content-header {
    margin-bottom: 30px;
}

.content-header h2 {
    font-weight: 700;
    margin-bottom: 10px;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #f1f1f1;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    margin-bottom: 0;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* Stats */
.stat-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.stat-title {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0;
}

.stat-card.primary .stat-icon {
    background-color: rgba(74, 108, 247, 0.1);
    color: #4a6cf7;
}

.stat-card.success .stat-icon {
    background-color: rgba(40, 199, 111, 0.1);
    color: #28c76f;
}

.stat-card.warning .stat-icon {
    background-color: rgba(255, 159, 67, 0.1);
    color: #ff9f43;
}

.stat-card.danger .stat-icon {
    background-color: rgba(234, 84, 85, 0.1);
    color: #ea5455;
}

/* Tables */
.table-responsive {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: #333;
    border-top: none;
    padding: 12px 15px;
}

.table td {
    padding: 12px 15px;
    vertical-align: middle;
}

.table .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.table .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.table .status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.table .status.active {
    background-color: rgba(40, 199, 111, 0.1);
    color: #28c76f;
}

.table .status.inactive {
    background-color: rgba(234, 84, 85, 0.1);
    color: #ea5455;
}

.table .status.pending {
    background-color: rgba(255, 159, 67, 0.1);
    color: #ff9f43;
}

.table .action-buttons {
    display: flex;
    align-items: center;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn.edit {
    background-color: rgba(74, 108, 247, 0.1);
    color: #4a6cf7;
}

.action-btn.delete {
    background-color: rgba(234, 84, 85, 0.1);
    color: #ea5455;
}

.action-btn.view {
    background-color: rgba(40, 199, 111, 0.1);
    color: #28c76f;
}

.action-btn:hover {
    opacity: 0.8;
}

/* Forms */
.form-control {
    border-radius: 5px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 0.2rem rgba(74, 108, 247, 0.25);
}

.form-label {
    font-weight: 500;
    color: #333;
}

.btn {
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: 500;
}

.btn-primary {
    background-color: #4a6cf7;
    border-color: #4a6cf7;
}

.btn-primary:hover {
    background-color: #3051d3;
    border-color: #3051d3;
}

.btn-danger {
    background-color: #ea5455;
    border-color: #ea5455;
}

.btn-danger:hover {
    background-color: #d13c3d;
    border-color: #d13c3d;
}

/* Upload Preview */
.upload-preview {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ddd;
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: #4a6cf7;
    color: white;
    border-radius: 10px 10px 0 0;
}

.modal-title {
    font-weight: 600;
}

.modal-footer {
    border-top: 1px solid #f1f1f1;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar-active .sidebar {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* Toggle Button for Mobile */
.sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 101;
    cursor: pointer;
    background-color: #4a6cf7;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
}

@media (max-width: 992px) {
    .sidebar-toggle {
        display: flex;
    }
}