/* --- 1. GLOBAL & VARIABLES --- */
:root {
    --primary: #00f5ff;
    --primary-dark: #00c2cb;
    --secondary: #0a0a12;
    --accent: #ffcc00;
    --dark-bg: #0a0a12;
    --dark-card: #151522;
    --dark-text: #ffffff;
    --dark-text-secondary: #a0a0c0;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --glow: 0 0 10px rgba(0, 245, 255, 0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', 'Segoe UI', Verdana, sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0f0f1a 100%);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- 2. LAYOUT: HEADER & NAV --- */
header {
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.header-container { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.logo img { height: 40px; }
.nav-links { display: flex; gap: 30px; }
.mobile-nav-toggle { 
    display: none; 
    background: none; 
    border: none; 
    color: white; 
    font-size: 1.5rem; 
    cursor: pointer; 
}
.nav-links a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background: var(--primary); transition: var(--transition);
}
.nav-links a:hover:after { width: 100%; }

/* --- Layout Components --- */

section { padding: 100px 0; }

.section-header { text-align: center; margin-bottom: 70px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; position: relative; display: inline-block; font-family: 'Rajdhani', sans-serif; }
.section-header h2:after {
    content: ''; position: absolute; width: 80px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    bottom: -15px; left: 50%; transform: translateX(-50%); border-radius: 2px;
}
.section-header p { color: white; max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* --- 2. LAYOUT: FOOTER --- */

footer {
    background: rgba(10, 10, 18, 0.95);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 70px; margin-bottom: 10px; }
.footer-column h3 {
    margin-bottom: 25px; font-size: 1.3rem; position: relative;
    padding-bottom: 10px; color: var(--primary);
}
.footer-column h3:after {
    content: ''; position: absolute; width: 40px; height: 3px;
    background: var(--primary); bottom: 0; left: 0; border-radius: 2px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: white; text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-link {
    width: 40px; height: 40px; background: var(--dark-card);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--dark-text); transition: var(--transition);
}
.social-link:hover { background: var(--primary); color: white; transform: translateY(-3px); }
.copyright { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.05); color: white; font-size: 0.9rem; }

/* Dropdown Menu */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none; position: absolute; background: var(--dark-card);
    min-width: 260px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    z-index: 1001; border-radius: 8px; border: 1px solid rgba(0, 245, 255, 0.2);
    top: 100%; left: 0; padding: 12px 0; margin-top: 10px; backdrop-filter: blur(10px);
}
.dropdown-content a {
    padding: 12px 20px !important; text-decoration: none; display: block;
    color: var(--dark-text); font-size: 0.95rem; transition: var(--transition);
}
.dropdown-content a:after { display: none !important; }
.dropdown-content a:hover { background: rgba(0, 245, 255, 0.1); color: var(--primary) !important; padding-left: 25px !important; }
.dropdown:hover .dropdown-content { display: block; }
.nav-links .dropdown > a i { margin-left: 8px; font-size: 0.75rem; transition: transform 0.3s; }
.dropdown:hover > a i { transform: rotate(180deg); color: var(--primary); }

/* --- 3. COMPONENTS: BUTTONS --- */

.btn {
    display: inline-block; padding: 14px 32px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white; text-decoration: none; border-radius: 8px;
    font-weight: 600; transition: var(--transition); border: none; cursor: pointer;
    font-family: 'Montserrat', sans-serif; box-shadow: 0 0 15px rgba(0, 245, 255, 0.5);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 245, 255, 0.7); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); box-shadow: none; }
.btn-outline:hover { background: var(--primary); color: white; }

/* --- 3. COMPONENTS: FORMS --- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--primary); }
.form-control {
    width: 100%; padding: 14px; background: rgba(10, 10, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px;
    color: var(--dark-text); font-family: inherit; transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 10px rgba(0, 245, 255, 0.3); }

/* --- 3. COMPONENTS: ALERTS --- */
.alert { padding: 12px; border-radius: 8px; margin-bottom: 20px; }
.alert-error { background: rgba(255, 0, 0, 0.1); color: #ff6b6b; border: 1px solid rgba(255, 0, 0, 0.2); }
.alert-success { background: rgba(0, 255, 0, 0.1); color: #51cf66; border: 1px solid rgba(0, 255, 0, 0.2); }

/* --- 4. UTILITIES --- */
.hidden { display: none !important; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Category Tabs Filtering Buttons */
.category-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 50px; }
.category-tab {
    background: rgba(21, 21, 34, 0.8); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--dark-text); 
    padding: 10px 16px; 
    border-radius: 50px;
    cursor: pointer; 
    transition: var(--transition); 
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; 
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    outline: none;
}
.category-tab:hover { 
    border-color: var(--primary); 
    background: rgba(0, 245, 255, 0.08); 
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.category-tab.active {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white; 
    border: none; 
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
}

/* Partner Page Specific */
.system-card-primary-border { border-top-color: var(--primary) !important; }
.system-label-primary { background: var(--primary) !important; color: var(--dark-bg) !important; }

/* --- 5. COMPONENTS: CARDS & GRIDS --- */

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }
.product-card {
    background: var(--dark-card); border-radius: 12px; overflow: hidden;
    transition: var(--transition); border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative; display: flex; flex-direction: column; min-height: 100%;
}
.product-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); border-color: rgba(0, 245, 255, 0.3); }

.product-content { padding: 25px; flex-grow: 1; }
.product-content h3 { font-size: 1.2rem; margin-bottom: 15px; color: var(--primary); text-shadow: 0 0 10px rgba(0, 245, 255, 0.3); }
.product-content p { color: white; margin-bottom: 20px; }

.product-features { list-style: none; margin-bottom: 25px; }
.product-features li { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); position: relative; padding-left: 25px; }
.product-features li:before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: bold; }

.product-badge {
    position: absolute; top: 15px; right: 15px; background: var(--accent);
    color: #000; padding: 5px 12px; border-radius: 20px; font-size: 0.8rem;
    font-weight: 600; box-shadow: 0 0 10px rgba(255, 204, 0, 0.7); z-index: 2;
}

.product-indicator {
    background: var(--primary-dark); color: var(--secondary); font-size: 0.85rem;
    font-weight: 600; padding: 8px 0; width: 100%; display: block;
    opacity: 0.8; transition: var(--transition); text-decoration: none; text-align: center;
}
.product-card:hover .product-indicator { opacity: 1; background: var(--primary); color: #000; }

/* Partner Card UI */
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.partner-card {
    background: var(--dark-card); border-radius: 12px; transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; text-decoration: none;
}
.partner-card:hover { transform: translateY(-5px); border-color: rgba(0, 245, 255, 0.3); }
.partner-logo { height: 100px; display: flex; align-items: center; justify-content: center; flex-grow: 1; padding: 0; }
.partner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.partner-indicator {
    background: var(--primary); color: var(--secondary); font-size: 0.85rem; font-weight: 600;
    padding: 8px 0; border-radius: 0 0 12px 12px; text-align: center;
}

/* Partner Subpages Hero */
.partner-hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1) 0%, rgba(255, 42, 109, 0.1) 100%);
    text-align: center;
}
.partner-logo-large {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}
.partner-logo-large img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    object-fit: contain;
}

.partner-description { font-size: 1.2rem; color: var(--dark-text-secondary); margin-bottom: 40px; max-width: 800px; margin: 0 auto; }
.partner-content { background: var(--dark-card); border-radius: 12px; padding: 40px; margin-top: -40px; position: relative; z-index: 1; border: 1px solid rgba(255, 255, 255, 0.05); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin: 40px 0; }
.feature-card { background: rgba(10, 10, 18, 0.5); border-radius: 10px; padding: 25px; border-left: 4px solid var(--primary); transition: var(--transition); }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); }
.feature-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }

.back-link { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); text-decoration: none; margin-bottom: 30px; transition: var(--transition); }
.back-link:hover { gap: 15px; }

.section-divider { height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); margin: 40px 0; }
.tagline { font-size: 1.5rem; font-weight: 700; color: var(--primary); text-align: center; margin: 20px 0; letter-spacing: 2px; font-family: 'Rajdhani', sans-serif; }
.highlight-box { background: rgba(0, 245, 255, 0.1); border-left: 4px solid var(--primary); padding: 20px; border-radius: 0 8px 8px 0; margin: 30px 0; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 30px 0; }

.image-section { margin: 60px 0; }
.image-section-header { text-align: center; margin-bottom: 40px; }
.image-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.image-content.reverse { direction: rtl; }
.image-content.reverse > * { direction: ltr; }
.image-container { border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); }
.image-container img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.image-container:hover img { transform: scale(1.03); }
.image-list { list-style: none; margin: 20px 0; }
.image-list li { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: var(--dark-text-secondary); position: relative; padding-left: 25px; }
.image-list li:before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: bold; }

.systems-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 30px 0; }
.system-card { background: rgba(10, 10, 18, 0.7); border-radius: 8px; padding: 20px; border-top: 4px solid var(--primary); transition: var(--transition); }
.system-label { display: inline-block; background: var(--primary); color: var(--dark-bg); padding: 2px 8px; border-radius: 4px; font-weight: 700; margin-bottom: 10px; font-size: 0.9rem; }

/* Product/Solution Images */
.product-image {
    height: 200px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* Client Logos */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
}
.client-logo {
    background: var(--dark-card);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}
.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* --- 6. ADMIN PANEL UI --- */
table {
    width: 100%; border-collapse: collapse; background: var(--dark-card);
    border-radius: 8px; overflow: hidden; margin: 20px 0;
}
th, td { padding: 15px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
th { background: rgba(0, 245, 255, 0.1); color: var(--primary); font-family: 'Rajdhani', sans-serif; font-size: 1.1rem; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 40px; }
.stat-card { background: var(--dark-card); padding: 25px; border-radius: 12px; border: 1px solid rgba(0, 245, 255, 0.1); text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--primary); display: block; }

.tabs { display: flex; gap: 10px; margin-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.tab-link {
    background: transparent; border: none; color: var(--dark-text-secondary);
    padding: 15px 25px; cursor: pointer; font-weight: 600; transition: var(--transition);
    border-bottom: 3px solid transparent;
}
.tab-link:hover { color: var(--primary); }
.tab-link.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; animation: fadeIn 0.4s ease; }
.tab-content.active { display: block; }

.status-badge {
    padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
}
.status-unread, .status-failed { background: rgba(255, 107, 107, 0.2); color: #ff6b6b; }
.status-read, .status-sent, .status-active { background: rgba(81, 207, 102, 0.2); color: #51cf66; }

/* Admin Header */
.admin-header {
    background: var(--dark-card);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 40px;
}
.admin-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-header .logo img {
    height: 40px;
}
.admin-header .user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}
.admin-header .user-info span {
    color: var(--dark-text);
    font-weight: 500;
}

/* Admin Content Wrapper */
.admin-content-wrapper {
    padding-bottom: 80px; /* Space for footer */
}

/* Login Form */
.login-form-container {
    background: var(--dark-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 400px;
    margin: 100px auto; /* Center login form */
}
.login-form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
}
.login-form-container .form-group input {
    width: 100%;
    padding: 14px;
    background: rgba(10, 10, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--dark-text);
    font-family: 'Montserrat', sans-serif;
}
.login-form-container .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}
.login-form-container .btn {
    width: 100%;
    padding: 14px;
}

/* Setup Page Styles (moved from setup.php) */
.setup-container {
    background: var(--dark-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 500px;
    margin: 100px auto; /* Center setup form */
}
.setup-container .help-text {
    font-size: 0.9rem;
    color: var(--dark-text-secondary);
    margin-top: 5px;
}

/* --- 7. ANIMATIONS --- */
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
.floating { animation: float 5s ease-in-out infinite; }

/* --- 8. RESPONSIVE --- */
@media (max-width: 992px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
    .two-column, .image-content, .image-content.reverse, .systems-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; }
    .mobile-nav-toggle { display: block; }
    .nav-links { 
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: var(--dark-bg); 
        flex-direction: column; 
        padding: 20px; 
        gap: 20px; 
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-links.active { display: flex; }
    .dropdown-content { position: static; background: none; box-shadow: none; border: none; padding: 0 0 0 15px; }
    .dropdown-content a { padding: 10px 0 !important; }
}