/* 클라피24 관리자 공통 스타일 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    color: #333;
}

.admin-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 헤더 */
.admin-header {
    background: white;
    border-radius: 12px;
    padding: 20px 30px;
    margin: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.admin-nav {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-nav a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
}

.admin-nav a:hover {
    background: #f0f0f0;
    color: #333;
}

.admin-nav a.active {
    background: #667eea;
    color: white;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 6px;
}

.logout-btn {
    color: #c33 !important;
    border: 1px solid #c33 !important;
}

.logout-btn:hover {
    background: #c33 !important;
    color: white !important;
}

/* 통계 카드 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
}

.stat-card.orange { border-left-color: #ff6600; }
.stat-card.green { border-left-color: #28a745; }
.stat-card.purple { border-left-color: #6f42c1; }

.stat-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.stat-sub {
    font-size: 13px;
    color: #999;
}

/* 콘텐츠 그리드 */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.content-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.box-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* 테이블 */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 13px;
}

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

/* 최근 목록 */
.recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recent-item:hover {
    background: #f8f9fa;
}

.recent-info {
    flex: 1;
}

.recent-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.recent-details {
    font-size: 12px;
    color: #666;
}

.recent-amount {
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
}

/* 버튼 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-success {
    background: #28a745;
    color: white;
}

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

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* 필터 */
.list-filters {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto auto;
    gap: 10px;
    align-items: end;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 13px;
}

.filter-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
}

.filter-input:focus {
    outline: none;
    border-color: #667eea;
}

/* 테이블 (견적서 목록) */
.quotation-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

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

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 13px;
}

.table tr:hover {
    background: #f8f9fa;
}

.customer-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.customer-name {
    font-weight: 600;
}

.customer-contact {
    font-size: 12px;
    color: #666;
}

.actions {
    display: flex;
    gap: 8px;
}

.btn-view {
    background: #667eea;
    color: white;
}

.btn-edit {
    background: #ff6600;
    color: white;
}

/* 반응형 */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
    }
    
    .admin-nav {
        width: 100%;
        justify-content: center;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
}
