/**
 * 관리자 계정 관리 페이지 전용 CSS (admin_common.css 위에서 동작)
 */

/* 콘텐츠 영역 패딩 */
.admin-content .am-content {
    padding: 20px 30px;
}

.am-section {
    margin-bottom: 30px;
}

.am-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    font-size: 13px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.2s;
    font-family: 'Noto Sans KR', sans-serif;
    background-color: white;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px;
}

.am-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 13px;
    font-family: 'Noto Sans KR', sans-serif;
}

.am-btn-primary { background: #667eea; color: white; }
.am-btn-primary:hover { background: #5a6fd8; }
.am-btn-secondary { background: #6c757d; color: white; }
.am-btn-danger { background: #dc3545; color: white; }
.am-btn-danger:hover { background: #c82333; }
.am-btn-success { background: #28a745; color: white; }
.am-btn-success:hover { background: #218838; }
.am-btn-warning { background: #ffc107; color: #212529; }
.am-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 관리자 목록 테이블 */
.admin-table-container {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

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

.admin-table th {
    background: #f1f3f4;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #667eea;
    font-size: 12px;
    white-space: nowrap;
}

.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e9ecef;
    font-size: 13px;
    color: #333;
}

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

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-active { background: #d4edda; color: #155724; }
.status-inactive { background: #f8d7da; color: #721c24; }

.session-info {
    font-size: 12px;
    color: #666;
}

.master-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 4px;
}

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