/* Main Styles */
:root {
    --primary-color: #1a2a6c;
    --secondary-color: #b21f1f;
    --accent-color: #fdbb2d;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
}

/* Animated Header */
.animated-header {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    animation: gradientBG 15s ease infinite;
    background-size: 400% 400%;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Dashboard */
.dashboard-card {
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.dashboard-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Forms */
.custom-form {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 42, 108, 0.25);
}

/* Button styling improvements */
.btn {
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    border-color: #6a11cb;
    box-shadow: 0 3px 5px rgba(106, 17, 203, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5700b3, #1e67e6);
    border-color: #5700b3;
    box-shadow: 0 4px 8px rgba(106, 17, 203, 0.3);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: #6a11cb;
    border-color: #6a11cb;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    border-color: #6a11cb;
    box-shadow: 0 3px 5px rgba(106, 17, 203, 0.2);
    transform: translateY(-1px);
}

.btn-outline-danger {
    color: #e74a3b;
    border-color: #e74a3b;
}

.btn-outline-danger:hover {
    background-color: #e74a3b;
    border-color: #e74a3b;
    color: #fff;
    box-shadow: 0 3px 5px rgba(231, 74, 59, 0.2);
    transform: translateY(-1px);
}

.mail-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Copy/Delete buttons */
.copy-btn, .delete-btn {
    transition: all 0.2s ease;
}

.copy-btn:hover, .delete-btn:hover {
    transform: translateY(-1px);
}

.copy-all-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    color: #5e6e82;
    border: none;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
}

.copy-all-btn:hover {
    background: linear-gradient(135deg, #c3cfe2, #f5f7fa);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Password input styling */
.form-control.password-field, 
.form-control.refresh-token-field, 
.form-control.client-id-field {
    font-family: "Courier New", monospace;
    letter-spacing: 0.1em;
    background-color: #f8f9fa;
    border-color: #e3e6f0;
}

/* Tables */
.table-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.table th {
    background-color: var(--primary-color);
    color: white;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Account Submission */
.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.account-column-header {
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    border-radius: 5px 5px 0 0;
}

.account-column-content {
    border: 1px solid #ddd;
    border-radius: 0 0 5px 5px;
    padding: 10px;
    min-height: 100px;
}

/* Chat Area */
.chat-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 500px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
}

.chat-input {
    padding: 15px;
    background-color: white;
    border-top: 1px solid #ddd;
}

.message {
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 75%;
    position: relative;
}

.message-sent {
    background-color: var(--primary-color);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 0;
}

.message-received {
    background-color: #e9ecef;
    border-bottom-left-radius: 0;
}

.message-time {
    font-size: 0.8rem;
    margin-top: 5px;
    opacity: 0.7;
}

/* Notifications */
.notification-badge {
    position: relative;
    top: -8px;
    right: 5px;
    padding: 3px 6px;
    border-radius: 50%;
    background-color: var(--danger-color);
    color: white;
    font-size: 0.7rem;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.notification-item:hover {
    background-color: #f5f5f5;
}

.notification-unread {
    border-left: 4px solid var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
    
    .message {
        max-width: 85%;
    }
    
    .dashboard-card {
        margin-bottom: 20px;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Status Badges */
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-pending {
    background-color: #ffeeba;
    color: #856404;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.status-completed {
    background-color: #cce5ff;
    color: #004085;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
} 