/* =======================================
   FULANI AGENTS PORTAL STYLES
   Modern, Clean & Professional Design
   ======================================= */

/* Import Fulani Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* Global Font Settings */
* {
    font-family: 'Roboto', sans-serif;
}

/* V7.1: Orbitron font applied to ALL headings, buttons, labels, and UI elements */
h1, h2, h3, h4, h5, h6,
.login-header h2,
.section-title,
.stat-info h3,
.stat-info p,
button,
.btn-login,
.btn-logout,
.btn-hold-toggle,
.btn-download-docs,
.btn-delete-property,
.btn-upload-document,
.btn-add-property,
.btn-delete-document,
.btn-show-more-logins,
label,
.form-group label,
.property-card h3,
.agent-details h1,
th,
.property-actions button,
input[type="submit"],
input[type="button"],
.checkbox-group label {
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Keep Roboto only for body text and table data */
p, span:not(.stat-info span), td, li {
    font-family: 'Roboto', sans-serif;
    text-transform: none;
    letter-spacing: normal;
}

/* === LOGIN PAGE === */
.fulani-agents-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://fulani.mt/wp-content/uploads/2025/07/architectural-black-and-white-background-with-plans-of-building-E3MAF3-e1753773452805.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 0;
    margin: 0;
}

.fulani-agents-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.85);
    z-index: 1;
}

.login-container {
    position: relative;
    z-index: 2;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 50px;
    max-width: 550px;
    width: 90%;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
    border: none;
    border-bottom: none;
}

.login-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.login-header h2 {
    color: #2c3e50;
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.login-header p {
    color: #718096;
    font-size: 16px;
    margin: 0;
    border: none;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Orbitron', sans-serif;
}

.btn-login:hover {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.login-footer {
    text-align: center;
    margin-top: 25px;
}

.login-footer a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-footer a:hover {
    color: #34495e;
    text-decoration: underline;
}

/* === PORTAL PAGE === */
.fulani-agents-portal {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    background: #f7fafc;
    min-height: 100vh;
}

/* Portal Header */
.portal-header {
    background-image: url('https://fulani.mt/wp-content/uploads/2025/07/architectural-black-and-white-background-with-plans-of-building-E3MAF3-e1753773452805.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.portal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.9);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.agent-avatar img {
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.agent-details h1 {
    color: white;
    font-size: 32px;
    margin: 0 0 5px 0;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.agent-email {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-logout:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

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

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 40px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2c3e50;
    border-radius: 15px;
}

.stat-info h3 {
    font-size: 32px;
    margin: 0 0 5px 0;
    color: #2d3748;
    font-weight: 700;
}

.stat-info p {
    margin: 0;
    color: #718096;
    font-size: 14px;
    font-weight: 500;
}

/* Portal Sections */
.portal-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 24px;
    color: #2c3e50;
    margin: 0 0 30px 0;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #2c3e50;
    border-radius: 2px;
}

/* Login History Table */
.login-history-table {
    overflow-x: auto;
}

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

.login-history-table th {
    background: #f7fafc;
    padding: 15px;
    text-align: left;
    color: #4a5568;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-history-table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    color: #2d3748;
    font-size: 15px;
}

.login-history-table tr:hover {
    background: #f7fafc;
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.property-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.property-card.on-hold {
    border-color: #48bb78;
}

.property-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #e2e8f0;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #a0aec0;
    font-size: 18px;
    font-weight: 600;
}

.hold-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #48bb78;
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.4);
}

.property-content {
    padding: 25px;
}

.property-content h3 {
    font-size: 18px;
    color: #2c3e50;
    margin: 0 0 12px 0;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.property-location {
    color: #718096;
    font-size: 14px;
    margin: 0 0 10px 0;
}

.property-price {
    font-size: 24px;
    color: #2c3e50;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.property-features {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.property-features span {
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
}

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

.property-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-hold-toggle {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.btn-hold-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.4);
}

.property-card.on-hold .btn-hold-toggle {
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
}

.btn-download-docs {
    background: #2c3e50;
    color: white;
}

.btn-download-docs:hover {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fulani-agents-portal {
        padding: 15px;
    }
    
    .portal-header {
        padding: 25px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .agent-info {
        flex-direction: column;
        text-align: center;
    }
    
    .agent-details h1 {
        font-size: 24px;
    }
    
    .portal-stats {
        grid-template-columns: 1fr;
    }
    
    .portal-section {
        padding: 25px 20px;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .login-container {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .property-actions {
        flex-direction: column;
    }
    
    .login-history-table {
        font-size: 13px;
    }
    
    .login-history-table th,
    .login-history-table td {
        padding: 10px 8px;
    }
}

/* Print Styles */
@media print {
    .portal-header,
    .btn-logout,
    .property-actions {
        display: none;
    }
    
    .property-card {
        page-break-inside: avoid;
    }
}
