/* Custom CSS for Althamarat Project */

:root {
    --copacol-primary: #F15A24;
    --copacol-secondary: #D6451C;
    --copacol-accent: #FFA463;
    --copacol-bg-light: #FFF5EF;
    --copacol-text-dark: #3A3A3A;
    --copacol-text-light: #6F6F6F;
}

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

body {
    font-family: 'Cairo', sans-serif;
}

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

/* Custom Gradients */
.gradient-soft {
    background: linear-gradient(180deg, #FFF5EF 0%, #FFFFFF 100%);
}

.gradient-primary {
    background: linear-gradient(135deg, #F15A24 0%, #D6451C 100%);
}

.gradient-accent {
    background: linear-gradient(90deg, #FFA463 0%, #F15A24 100%);
}

/* Custom Shadow */
.shadow-copacol {
    box-shadow: 0 8px 20px rgba(241, 90, 36, 0.15);
}

/* Product Card Hover Effect */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(241, 90, 36, 0.3);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #F15A24 0%, #D6451C 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(241, 90, 36, 0.4);
    transform: translateY(-2px);
}

/* Fade-in Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Hero Section Background */
.hero-bg {
    background: linear-gradient(135deg, rgba(241, 90, 36, 0.9) 0%, rgba(214, 69, 28, 0.9) 100%),
                url('https://images.unsplash.com/photo-1542838132-92c53300491e?q=80&w=2074&auto=format&fit=crop') center/cover;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Contact Form Styles */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #FFA463;
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--copacol-primary);
}

/* Admin Panel Styles */
.admin-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 250px;
    background: linear-gradient(180deg, #F15A24 0%, #D6451C 100%);
    padding: 20px;
    overflow-y: auto;
}

.admin-content {
    margin-right: 250px;
    padding: 30px;
}

.admin-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.data-table th {
    background: linear-gradient(135deg, #F15A24 0%, #D6451C 100%);
    color: white;
    padding: 16px;
    text-align: right;
    font-weight: 600;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.data-table tr:hover {
    background: #f9fafb;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #FFF5EF;
    color: #F15A24;
}

.badge-danger {
    background: #fee2e2;
    color: #dc2626;
}

.badge-warning {
    background: #fef3c7;
    color: #d97706;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}
