/* SMS Gateway - Main CSS */

:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2ecc71;
    --secondary-dark: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --gray-color: #95a5a6;
    --white-color: #ffffff;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animation for login page */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-card {
    animation: fadeIn 0.5s ease-in-out;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Dashboard styles */
.sidebar {
    background-color: var(--dark-color);
    color: var(--white-color);
    min-height: 100vh;
    transition: all 0.3s;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    border-radius: 0;
    margin-bottom: 5px;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    color: var(--white-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: var(--white-color);
    background-color: var(--primary-color);
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Dashboard cards */
.dashboard-card {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: none;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.dashboard-card .card-header {
    font-weight: 500;
    border-bottom: none;
}

.dashboard-card .card-body {
    padding: 1.5rem;
}

.stats-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stats-number {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0;
}

.stats-label {
    font-size: 1rem;
    color: var(--gray-color);
}

/* Button Styles */
.btn-primary, .btn-primary:disabled {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-success, .btn-success:disabled {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-success:hover, .btn-success:focus, .btn-success:active {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

/* API Key styles */
.api-key-container {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    font-family: monospace;
    position: relative;
    margin: 20px 0;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0.7;
    transition: all 0.2s;
}

.copy-btn:hover {
    opacity: 1;
}

/* API Test Form */
.api-test-form {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

/* Documentation styles */
.doc-section {
    margin-bottom: 40px;
}

.doc-section h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.doc-code {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    font-family: monospace;
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

/* Table styles */
.table-custom {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.table-custom thead {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        width: 100%;
        position: relative;
        min-height: auto;
    }
    
    .stats-number {
        font-size: 1.8rem;
    }
    
    .stats-icon {
        font-size: 2rem;
    }
}

/* Animation for alerts */
.alert {
    animation: fadeIn 0.3s ease-out;
}

/* Loader animation */
.loader {
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid var(--primary-color);
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toggle switch for API settings */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:focus + .toggle-slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
} 