/* style.css - Yujin AI Brand Styling */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f0ed !important;
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    background: linear-gradient(135deg, #7FB3D5 0%, #6FA8DC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 32px;
    font-weight: 700;
}

.header .user-info {
    font-size: 14px;
    color: #666;
    margin-right: 15px;
}

/* Cards */
.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.card h2 {
    background: linear-gradient(135deg, #7FB3D5 0%, #6FA8DC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
}

.card h3 {
    color: #6FA8DC;
    font-size: 20px;
    font-weight: 600;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7FB3D5;
    box-shadow: 0 0 0 3px rgba(127, 179, 213, 0.15);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #7FB3D5 0%, #6FA8DC 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 179, 213, 0.4);
}

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

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #155724;
    border: none;
}

.alert-error {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
}

.alert-info {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    color: #0c5460;
    border: none;
}

/* Connection Cards */
.connections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.connection-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.connection-card:hover {
    border-color: #7FB3D5;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(127, 179, 213, 0.25);
}

.connection-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.connection-card .relationship-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #7FB3D5 0%, #6FA8DC 100%);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.connection-card .bond-value {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.connection-card .bond-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.connection-card .bond-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #7FB3D5 0%, #6FA8DC 50%, #A8D5E2 100%);
    transition: width 0.3s;
    border-radius: 10px;
}

.connection-card .connection-details {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.connection-card .connection-details p {
    margin-bottom: 5px;
}

.connection-card .connection-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
}

/* Stats Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #7FB3D5 0%, #6FA8DC 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(127, 179, 213, 0.3);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .stat-number {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 13px;
    opacity: 0.95;
    font-weight: 500;
}

/* Navigation */
.nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav a {
    color: #6FA8DC;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 15px;
}

.nav a:hover {
    color: #7FB3D5;
    transform: translateY(-1px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Login/Register specific */
.auth-container {
    max-width: 450px;
    margin: 50px auto;
}

.auth-container .card {
    text-align: center;
    background: white;
}

.auth-container h2 {
    margin-bottom: 10px;
}

.auth-container .form-group {
    text-align: left;
}

.auth-container .btn {
    width: 100%;
}

.auth-container .auth-link {
    margin-top: 20px;
    color: #666;
}

.auth-container .auth-link a {
    background: linear-gradient(135deg, #7FB3D5 0%, #6FA8DC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-weight: 600;
}

.auth-container .auth-link a:hover {
    text-decoration: underline;
}

/* Admin Table Styles */
.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.user-table th {
    background: linear-gradient(135deg, #7FB3D5 0%, #6FA8DC 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.user-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

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

.user-table tr:last-child td {
    border-bottom: none;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 5px;
}

.badge-admin {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: white;
}

.badge-active {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #155724;
}

.badge-inactive {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.action-btn {
    padding: 6px 12px;
    font-size: 13px;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .connections-grid {
        grid-template-columns: 1fr;
    }
    
    .nav {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .user-table {
        font-size: 12px;
    }
    
    .user-table th,
    .user-table td {
        padding: 10px 8px;
    }
    
    .action-btn {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* Glassmorphism effects - removed, using solid backgrounds */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: #7FB3D5;
    color: white;
}

::-moz-selection {
    background: #7FB3D5;
    color: white;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 12px;
    margin-top: 40px;
}