/* Santel Communications - Global Styles */
/* Following Hurricane Electric / Cogent patterns - utilitarian, no fancy design */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    background: #fff;
}

a {
    color: #003366;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Top Bar */
.header-top {
    background: #003366;
    color: #fff;
    font-size: 12px;
    padding: 6px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
}

.header-top-left span {
    margin-right: 15px;
}

.header-top .separator {
    opacity: 0.5;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 0;
}

.header-top-right a {
    color: #fff;
    margin-left: 15px;
}

.header-top-right a:hover {
    text-decoration: underline;
}

/* Language Switcher */
.lang-switcher {
    margin-left: 20px;
    padding-left: 15px;
    border-left: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}

.lang-switcher a {
    color: #a8c5ff;
    margin: 0 3px;
}

.lang-switcher a:hover {
    color: #fff;
}

.lang-switcher strong {
    margin: 0 3px;
}

/* Header Main */
.header-main {
    border-bottom: 1px solid #ccc;
    padding: 20px 0;
}

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

.logo a {
    display: block;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 150px;
    display: block;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    font-size: 14px;
    font-weight: bold;
    color: #003366;
    padding: 5px 0;
}

.main-nav a:hover {
    color: #0066cc;
}

/* Main Content */
main {
    min-height: 500px;
}

/* Page Title */
.page-title {
    font-size: 24px;
    color: #003366;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #003366;
}

/* Section Title */
.section-title {
    font-size: 18px;
    color: #003366;
    margin: 25px 0 15px;
}

/* Content Sections */
.content-section {
    margin-bottom: 30px;
}

.content-section h2 {
    font-size: 18px;
    color: #003366;
    margin-bottom: 15px;
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* Lists */
ul.bullet-list {
    margin-left: 20px;
    margin-bottom: 15px;
}

ul.bullet-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th,
table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background: #f5f5f5;
    font-weight: bold;
    color: #003366;
}

table tr:hover {
    background: #f9f9f9;
}

/* Definition Lists */
dl {
    margin: 20px 0;
}

dt {
    font-weight: bold;
    color: #003366;
    margin-top: 15px;
}

dd {
    margin-left: 20px;
    margin-top: 5px;
    line-height: 1.6;
}

/* Footer */
footer {
    background: #f5f5f5;
    border-top: 3px solid #003366;
    padding: 30px 0 15px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 14px;
    color: #003366;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ccc;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    font-size: 12px;
    color: #333;
}

.footer-section p {
    font-size: 12px;
    line-height: 1.8;
    color: #555;
}

.footer-bottom {
    border-top: 1px solid #ccc;
    padding-top: 15px;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.footer-bottom a {
    color: #666;
}

/* Service Detail Page */
.service-detail {
    margin-bottom: 40px;
}

.service-detail h2 {
    font-size: 20px;
    color: #003366;
    margin-bottom: 15px;
    margin-top: 30px;
}

.service-detail p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.service-detail ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.service-detail li {
    margin-bottom: 8px;
}

.service-detail hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 30px 0;
}

/* Legal Pages */
.legal-page .legal-section {
    margin-bottom: 30px;
}

.legal-page .legal-section h2 {
    font-size: 18px;
    color: #003366;
    margin-bottom: 15px;
    margin-top: 25px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.legal-page .legal-section h3 {
    font-size: 15px;
    color: #003366;
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-page .legal-notice {
    background: #f0f4f8;
    border-left: 4px solid #003366;
    padding: 15px;
    margin-bottom: 30px;
    font-size: 13px;
}

/* Hero Section */
.hero {
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
    padding: 40px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

.hero-text h1 {
    font-size: 28px;
    color: #003366;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.hero-sidebar {
    background: #fff;
    border: 1px solid #ccc;
    padding: 15px;
}

.hero-sidebar.compact {
    padding: 12px;
}

.hero-sidebar h3 {
    font-size: 15px;
    color: #003366;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #003366;
}

.hero-sidebar.compact h3 {
    font-size: 14px;
    margin-bottom: 10px;
    padding-bottom: 6px;
}

.compact-form .form-group {
    margin-bottom: 8px;
}

.compact-form .compact-field {
    margin-bottom: 8px;
}

.compact-row {
    margin-bottom: 8px;
}

.compact-row .form-group {
    margin-bottom: 0;
}

.compact-form label {
    font-size: 10px;
    margin-bottom: 2px;
}

.compact-form input,
.compact-form select,
.compact-form textarea {
    padding: 4px 6px;
    font-size: 11px;
}

.compact-form textarea {
    min-height: 32px;
    height: 32px;
}

.btn-compact {
    padding: 6px 12px;
    font-size: 11px;
    margin-top: 5px;
}

.compact-note {
    margin-top: 8px;
    font-size: 10px;
}

/* Forms */
.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 3px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    font-size: 12px;
    font-family: inherit;
}

.form-group textarea {
    max-width: 100%;
    resize: vertical;
    min-height: 50px;
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-group-half {
    margin-bottom: 10px;
}

.form-group-half:first-child {
    flex: 0 0 40%;
}

.form-group-half:last-child {
    flex: 0 0 60%;
}

.form-group-half textarea {
    min-height: 40px;
    height: 40px;
}

.form-group-half select,
.form-group-half textarea {
    width: 100%;
}

.hero-sidebar h3 {
    font-size: 16px;
    color: #003366;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #003366;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    font-size: 13px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #003366;
}

.form-group textarea {
    max-width: 100%;
    resize: vertical;
    min-height: 60px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: #003366;
    color: #fff;
}

.btn-primary:hover {
    background: #004080;
    text-decoration: none;
}

.btn-secondary {
    background: #666;
    color: #fff;
}

.btn-secondary:hover {
    background: #777;
    text-decoration: none;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.two-column-sidebar {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
}

/* Quick Links Box */
.quick-links {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
}

.quick-links h4 {
    font-size: 14px;
    color: #003366;
    margin-bottom: 10px;
}

.quick-links ul {
    list-style: none;
}

.quick-links li {
    margin-bottom: 8px;
}

.quick-links a {
    font-size: 12px;
}

/* Network Map Placeholder */
.network-map {
    background: #e8f4fc;
    border: 1px solid #b8d4e8;
    padding: 40px;
    text-align: center;
    margin: 20px 0;
}

.network-map-placeholder {
    font-size: 14px;
    color: #666;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #003366;
    display: block;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 30px 0;
}

.service-item {
    padding: 20px;
    border: 1px solid #ddd;
}

.service-item h3 {
    font-size: 16px;
    color: #003366;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

/* News List */
.news-list {
    list-style: none;
}

.news-list li {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 11px;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.news-list h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.news-list p {
    font-size: 12px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .header-main .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .two-column {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .header-top .container {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

/* Portal / Dashboard Styles */
.portal-header {
    margin-bottom: 20px;
}

.portal-nav {
    display: flex;
    gap: 30px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-top: 10px;
}

.portal-nav a {
    font-size: 13px;
    font-weight: bold;
    color: #666;
    padding-bottom: 10px;
    margin-bottom: -12px;
}

.portal-nav a:hover {
    color: #003366;
    text-decoration: none;
}

.portal-nav a.active {
    color: #003366;
    border-bottom: 2px solid #003366;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
}

.dashboard-card h3 {
    font-size: 14px;
    color: #003366;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.dashboard-card.alert-card {
    background: #fff9f0;
    border-color: #e5d4b8;
}

.account-status {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dotted #ddd;
}

.status-item:last-child {
    border-bottom: none;
}

.status-label {
    color: #666;
}

.status-value {
    font-weight: bold;
    color: #333;
}

.status-value.active {
    color: #28a745;
}

.service-table,
.ticket-table,
.invoice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.service-table th,
.service-table td,
.ticket-table th,
.ticket-table td,
.invoice-table th,
.invoice-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.service-table th,
.ticket-table th,
.invoice-table th {
    background: #f5f5f5;
    font-weight: bold;
    color: #003366;
    font-size: 11px;
    text-transform: uppercase;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 3px;
}

.badge.success {
    background: #d4edda;
    color: #155724;
}

.badge.warning {
    background: #fff3cd;
    color: #856404;
}

.badge.danger {
    background: #f8d7da;
    color: #721c24;
}

.badge.info {
    background: #d1ecf1;
    color: #0c5460;
}

.view-all {
    margin-top: 10px;
    text-align: right;
}

.usage-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dotted #ddd;
}

.usage-item:last-child {
    border-bottom: none;
    margin-bottom: 10px;
}

.usage-label {
    color: #666;
}

.usage-value {
    font-weight: bold;
    color: #003366;
}

.usage-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}

.usage-fill {
    height: 100%;
    background: #003366;
    transition: width 0.3s ease;
}

.usage-note {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
}

.quick-links-list {
    list-style: none;
}

.quick-links-list li {
    padding: 6px 0;
    border-bottom: 1px dotted #ddd;
}

.quick-links-list li:last-child {
    border-bottom: none;
}

.quick-links-list a {
    font-size: 12px;
}

/* Portal Forms */
.portal-form {
    max-width: 600px;
}

.form-section {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
}

.form-section h3 {
    font-size: 14px;
    color: #003366;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* API Keys Table */
.api-keys-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.api-keys-table th,
.api-keys-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 12px;
}

.api-keys-table th {
    background: #f5f5f5;
    font-weight: bold;
    color: #003366;
}

.api-keys-table code {
    background: #f0f0f0;
    padding: 2px 6px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
}

.btn-small {
    padding: 5px 10px;
    font-size: 11px;
}

/* Usage Charts Placeholder */
.usage-chart {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

.chart-placeholder {
    color: #666;
    font-size: 13px;
}

/* Responsive Portal */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .portal-nav {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .portal-nav a {
        margin-bottom: 0;
    }
    
    .service-table,
    .ticket-table,
    .invoice-table {
        font-size: 11px;
    }
    
    .service-table th,
    .service-table td,
    .ticket-table th,
    .ticket-table td,
    .invoice-table th,
    .invoice-table td {
        padding: 6px 8px;
    }
}
