/**
 * Flipat Domain Marketplace - Styles
 * Theme: Peacock Blue / Sea Green
 */

:root {
    --primary-dark: #0f172a;
    --peacock-blue: #005f73;
    --sea-green: #0a9396;
    --accent-red: #ae2012;
    --accent-yellow: #ee9b00;
    --bg-light: #f8fafc;
    --transaction-bg: #e9ecef;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--primary-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Admin Bar */
.admin-bar {
    background: #000;
    font-size: 12px;
    letter-spacing: 1px;
}

.admin-bar a:hover {
    color: var(--accent-yellow) !important;
}

/* Top Bar */
.top-bar {
    background-color: var(--peacock-blue);
    position: relative;
    z-index: 1030;
}

.top-bar .dropdown-menu {
    z-index: 1031;
}

.top-bar select {
    background: transparent;
    cursor: pointer;
}

.top-bar select option {
    background: white;
    color: #333;
}

/* Header */
.main-header {
    background: #ffffff;
    border-bottom: 2px solid #e2e8f0;
}

.logo-text {
    font-weight: 900;
    letter-spacing: -1px;
    font-size: 1.75rem;
}

/* Menu Bar */
.menu-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    z-index: 1020;
}

.menu-bar .nav-link {
    color: var(--primary-dark) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 1.25rem 1.25rem !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-bar .nav-link i {
    font-size: 1.1rem;
    color: var(--sea-green);
}

.menu-bar .nav-link:hover,
.menu-bar .nav-link.active {
    background-color: var(--peacock-blue);
    color: #fff !important;
}

.menu-bar .nav-link:hover i,
.menu-bar .nav-link.active i {
    color: #fff;
}

/* Mobile Navigation */
.mobile-nav .nav-link {
    color: var(--primary-dark);
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.mobile-nav .nav-link:hover {
    color: var(--peacock-blue);
}

/* Form Controls - taller height */
.form-control,
.form-select {
    padding: 0.65rem 0.9rem;
    min-height: 46px;
}

/* Placeholder - lighter color */
::placeholder {
    color: #a0aec0 !important;
    opacity: 1;
}

::-webkit-input-placeholder {
    color: #a0aec0 !important;
}

::-moz-placeholder {
    color: #a0aec0 !important;
}

:-ms-input-placeholder {
    color: #a0aec0 !important;
}

/* Main Container */
.main-container {
    padding-top: 2rem;
    padding-bottom: 3rem;
    flex: 1;
}

/* Cards */
.contrast-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 95, 115, 0.1);
    background: #fff;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
}

/* Domain Row */
.domain-row {
    border-left: 5px solid transparent;
    transition: all 0.2s;
}

.domain-row:hover {
    border-left: 5px solid var(--accent-red);
    background: #fdfdfd;
}

/* Buttons - Rounded corners */
.btn-peacock {
    background-color: var(--peacock-blue);
    color: white;
    border-radius: 6px;
    border: none;
}

.btn-peacock:hover {
    background-color: #004d5d;
    color: white;
}

.btn-sea {
    background-color: var(--sea-green);
    color: white;
    border-radius: 6px;
    border: none;
}

.btn-sea:hover {
    background-color: #087e80;
    color: white;
}

.btn-outline-dark {
    border-radius: 6px;
}

.btn-outline-secondary {
    border-radius: 6px;
}

.btn-outline-primary {
    border-radius: 6px;
}

.btn-outline-danger {
    border-radius: 6px;
}

/* Badges */
.badge-sea {
    background-color: var(--sea-green);
}

.badge {
    font-weight: 600;
    border-radius: 6px;
}

.rounded-0 {
    border-radius: 6px !important;
}

/* Forms - Rounded corners */
.form-control {
    border-radius: 6px;
}

.form-control:focus {
    border-color: var(--peacock-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 95, 115, 0.25);
}

.form-select {
    border-radius: 6px;
}

.form-select:focus {
    border-color: var(--peacock-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 95, 115, 0.25);
}

.input-group-text {
    border-radius: 6px;
}

/* Tables */
.table th {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 95, 115, 0.05);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: #94a3b8;
}

.footer h5 {
    color: #fff;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.footer-link:hover {
    color: var(--sea-green);
    padding-left: 5px;
}

/* Copyright */
.copyright {
    background-color: var(--peacock-blue);
    font-size: 0.8rem;
}

/* Chat Styles */
.chat-box {
    background: #f8f9fa;
}

.message {
    max-width: 85%;
}

.message-content {
    font-size: 0.9rem;
}

.msg-admin {
    background: #e0f2f1;
    border-left: 4px solid var(--sea-green);
}

.msg-user {
    background: var(--peacock-blue);
    color: white;
}

.msg-other {
    background: #fff;
    border: 1px solid #e2e8f0;
}

/* Alerts */
.alert {
    border-radius: 6px;
}

/* Profile Sidebar Nav */
.nav-link.active {
    background-color: rgba(0, 95, 115, 0.1);
    color: var(--peacock-blue) !important;
    font-weight: 600;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--peacock-blue);
}

::-webkit-scrollbar-thumb:hover {
    background: #004d5d;
}

/* Utility Classes */
.fw-black {
    font-weight: 900;
}

.text-peacock {
    color: var(--peacock-blue);
}

.text-sea {
    color: var(--sea-green);
}

.bg-peacock {
    background-color: var(--peacock-blue);
}

.bg-sea {
    background-color: var(--sea-green);
}

/* Responsive */
@media (max-width: 991px) {
    .menu-bar {
        display: none !important;
    }
    
    .main-container {
        padding-top: 1rem;
    }
}

@media (max-width: 767px) {
    .logo-text {
        font-size: 1.25rem;
    }
    
    .top-bar .top-left,
    .top-bar .top-right {
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }
    
    .top-bar .user-account {
        font-size: 0.75rem;
    }
    
    .contrast-card {
        box-shadow: 5px 5px 0px rgba(0, 95, 115, 0.1);
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* SweetAlert2 customization */
.swal2-popup {
    border-radius: 12px !important;
}

.swal2-confirm {
    border-radius: 6px !important;
}

.swal2-cancel {
    border-radius: 6px !important;
}
