/* Common Styles for TKUIMBAHUL Website */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Personal Area Background (lighter blue) */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #2c53ae; /* Lighter blue for personal area */
    min-height: 100vh;
    color: #333;
}

/* Public Pages Background (dark blue) */
body.public-page {
    background: #0038b8; /* Dark blue for public pages */
}

/* Container Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.header h1 {
    color: #2c3e50;
    font-size: 2.2em;
    margin-bottom: 15px;
}

.header p {
    color: #555;
    font-size: 1.1em;
}

/* Form Container */
.form-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Dashboard Container */
.dashboard-container {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

/* Search Container */
.search-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Results Container */
.results-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Verification Container */
.verification-container {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

/* User Info Section */
.user-info {
    background: #e8f4fd;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.user-info h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.user-info p {
    margin-bottom: 8px;
    color: #555;
}

.user-info strong {
    color: #2c3e50;
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox Group for RTL */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    order: 1;
}

.checkbox-group label {
    margin-bottom: 0;
    order: 2;
    cursor: pointer;
}

.checkbox-group .help-text {
    order: 3;
    margin-top: 0;
    margin-right: 25px;
}

/* Help Text */
.help-text {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* Required Field Indicator */
.required {
    color: #e74c3c;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background: #0038b8;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9em;
    width: auto;
}

.btn-outline-primary {
    background: transparent;
    color: #0038b8;
    border: 2px solid #0038b8;
}

.btn-outline-primary:hover {
    background: #0038b8;
    color: white;
}

/* Messages */
.message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Dashboard Specific */
.user-header {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.action-card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.action-card:hover {
    border-color: #0038b8;
    box-shadow: 0 0 10px rgba(0,56,184,0.1);
    transform: translateY(-2px);
    color: inherit;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0038b8;
}

.verification-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
}

.user-id {
    font-family: monospace;
    padding: 0.2rem 0.5rem;
    background-color: #e9ecef;
    border-radius: 4px;
}

/* Search Specific */
.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.results-count {
    font-size: 1.2em;
    font-weight: 600;
    color: #2c3e50;
}

.result-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.user-name {
    font-size: 1.3em;
    font-weight: 700;
    color: #2c3e50;
}

.result-type {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.type-request {
    background: #e74c3c;
    color: white;
}

.type-offer {
    background: #27ae60;
    color: white;
}

.result-location {
    color: #666;
    font-size: 1em;
    margin-bottom: 10px;
}

.user-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.result-content {
    background: #e8f4fd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.result-content h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.result-card .contact-info {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.contact-info .phone-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.contact-info .phone-number {
    font-weight: 500;
    color: #333;
    font-size: 1.1rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    background-color: #f0f2f5;
    color: #333;
    border: 1px solid #dcdfe3;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact-btn.whatsapp-btn {
    background-color: #25D366;
    color: white;
    border-color: #25D366;
}

.contact-btn.whatsapp-btn:hover {
    background-color: #1DA851;
    border-color: #1DA851;
}

.result-card .result-date {
    font-size: 0.8em;
    color: #999;
    margin-top: 10px;
}

.no-results {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 2rem;
}

.no-results-prompt {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    padding: 1rem 2rem;
    border-radius: 10px;
    background-color: #f8f9fa;
    min-width: 180px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0038b8;
}

.stat-label {
    font-size: 1rem;
    color: #6c757d;
}

.prompt-message {
    font-size: 1.2rem;
    color: #333;
}

/* Verification Specific */
.verification-step {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.verification-step:hover {
    border-color: #0d6efd;
    box-shadow: 0 0 10px rgba(13,110,253,0.1);
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.step-complete .step-icon {
    color: #198754;
}

.step-pending .step-icon {
    color: #0d6efd;
}

.step-failed .step-icon {
    color: #dc3545;
}

.benefits-list {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.benefits-list i {
    color: #198754;
    margin-left: 0.5rem;
}

/* Lists */
.offers-list,
.requests-list {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.offer-item,
.request-item {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    background: #f8f9fa;
}

.offer-item:last-child,
.request-item:last-child {
    margin-bottom: 0;
}

.offer-location,
.request-location {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.offer-content,
.request-content {
    margin-bottom: 10px;
}

.offer-contact,
.request-contact {
    font-size: 0.9em;
    color: #666;
}

.offer-date,
.request-date {
    font-size: 0.8em;
    color: #999;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .result-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-info {
        flex-direction: column;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1em;
    }
}

@media (max-width: 600px) {
    .stats-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .stat-item {
        min-width: unset;
        width: 100%;
        box-sizing: border-box;
    }
} 