/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: #007bff;
}

ul {
    list-style: none;
}

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

/* Header styles */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

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

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin-left: 20px;
}

.main-nav ul li a {
    color: #555;
}

.main-nav ul li a:hover {
    color: #007bff;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small {
    padding: 8px 15px;
    font-size: 14px;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: #0069d9;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border: none;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #007bff;
    color: #007bff;
}

.btn-outline:hover {
    background-color: #007bff;
    color: #fff;
}

.btn-block {
    width: 100%;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #0062cc, #0d2b4a);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero .btn {
    margin: 0 10px;
}

/* Features section */
.features {
    padding: 80px 0;
    background-color: #fff;
}

.features h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

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

.feature-card i {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

/* Pricing section */
.pricing {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.pricing h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pricing-card {
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    background-color: #fff;
    position: relative;
    transition: all 0.3s ease;
}

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

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #007bff;
}

.pricing-card h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.pricing-card .price {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
}

.pricing-card .price span {
    font-size: 16px;
    font-weight: normal;
}

.pricing-card ul {
    margin-bottom: 30px;
}

.pricing-card ul li {
    margin-bottom: 10px;
}

/* Footer styles */
.main-footer {
    background-color: #222;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3, .footer-col h4 {
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ccc;
}

.footer-col a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
}

/* Auth forms */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 15px;
}

.auth-form {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 500px;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.forgot-password {
    display: block;
    text-align: right;
    margin-bottom: 15px;
    font-size: 14px;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
}

/* Alert messages */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Dashboard styles */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 70px);
}

.dashboard-sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: #fff;
    height: calc(100vh - 70px);
    position: fixed;
    top: 70px;
    left: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #3d5265;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.sidebar-nav ul li {
    padding: 10px 20px;
    border-left: 3px solid transparent;
}

.sidebar-nav ul li.active {
    background-color: #3d5265;
    border-left-color: #007bff;
}

.sidebar-nav ul li a {
    color: #ecf0f1;
    display: flex;
    align-items: center;
}

.sidebar-nav ul li a i {
    margin-right: 10px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #3d5265;
}

.sidebar-footer a {
    color: #ecf0f1;
}

.dashboard-content {
    flex: 1;
    margin-left: 250px;
    padding: 30px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.stat-card i {
    font-size: 36px;
    color: #007bff;
    margin-right: 20px;
}

.stat-info h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #6c757d;
}

.stat-info p {
    font-size: 24px;
    font-weight: bold;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.table th {
    background-color: #f8f9fa;
}

.status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-stopped {
    background-color: #f8d7da;
    color: #721c24;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.empty-state-icon {
    font-size: 60px;
    color: #adb5bd;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 10px;
    font-size: 24px;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 20px;
}

/* Responsive styles */
@media (max-width: 992px) {
    .feature-grid,
    .pricing-grid,
    .footer-content,
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .feature-grid,
    .pricing-grid,
    .footer-content,
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        width: 70px;
    }
    
    .sidebar-header h3,
    .sidebar-nav ul li a span {
        display: none;
    }
    
    .dashboard-content {
        margin-left: 70px;
    }
}
