/* Reset i osnovni stilovi */
*, :before, :after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    background-color: #F8F9FF;
    color: #111827;
    scroll-behavior: smooth;
}

/* Header */
header {
    background-color: #ffffff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E5E7EB;
}

.site-logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #4B5563;
    text-decoration: none;
    font-weight: 500;
}

.login-button {
    background-color: #3B82F6;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
}

/* Banner sekcija */
.banner {
    padding: 4rem 1rem;
    text-align: center;
    max-width: 815px;
    margin: 0 auto;
}

.banner h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.banner p {
    font-size: 1rem;
    color: #6B7280;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Website Checker Form */
.website-checker {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.website-checker-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.website-checker-title svg {
    width: 20px;
    height: 20px;
    color: #3B82F6;
}

.website-checker-title span {
    font-weight: 500;
    color: #111827;
}

.banner form {
    display: flex;
    gap: 0.5rem;
}

.banner input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #6B7280;
}

.banner button {
    padding: 0.75rem 1.5rem;
    background-color: #3B82F6;
    color: white;
    border-radius: 0.375rem;
    border: none;
    font-weight: 500;
    cursor: pointer;
}

/* Status sections */
.status-sections {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.status-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.popular-status, .recent-checks {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.popular-status h2, .recent-checks h2, .section-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.view-all {
    color: #3B82F6;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Status items */
.status-item, .check-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #E5E7EB;
}

.site-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.site-url {
    color: #111827;
    font-size: 0.875rem;
}

.check-count {
    color: #6B7280;
    font-size: 0.75rem;
}

.status-item:last-child, .check-item:last-child {
    border-bottom: none;
}

.site-url, .check-url {
    color: #111827;
    font-size: 0.875rem;
    font-weight: 500;
}

.check-url {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.status-text {
    color: #6B7280;
    font-size: 0.875rem;
}

.check-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-up {
    background-color: #ECFDF5;
    color: #059669;
}

.status-down {
    background-color: #FEE2E2;
    color: #DC2626;
}

.check-time {
    color: #6B7280;
    font-size: 0.75rem;
}

.check-count {
    color: #6B7280;
    font-size: 0.75rem;
}

.check-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-up {
    background-color: #ECFDF5;
    color: #059669;
}

.status-down {
    background-color: #FEE2E2;
    color: #DC2626;
}

.check-time {
    color: #6B7280;
    font-size: 0.75rem;
}

/* Premium section */
.premium-section {
    text-align: center;
    padding: 3rem;
    background: #F8F9FF;
    border-radius: 0.5rem;
    margin-top: 2rem;
}

.premium-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.premium-section p {
    color: #6B7280;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.view-pricing {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3B82F6;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
}

/* Footer */
footer {
    background: white;
    border-top: 1px solid #E5E7EB;
    padding: 4rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
}

.footer-section h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827!important;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: #6B7280;
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-text {
    color: #6B7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.newsletter-button {
    background-color: #3B82F6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
}

.copyright {
    text-align: center;
    color: #6B7280;
    font-size: 0.875rem;
    margin-top: 4rem;
}

/*Dinamic text on check*/

.status-report {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-report h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.status-report p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.status-report .performance-analysis,
.status-report .uptime-analysis,
.status-report .downtime-incidents {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.status-report .downtime-incidents ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.status-report .downtime-incidents li {
    font-size: 14px;
    color: #c82333;
    margin-bottom: 5px;
}

.status-report .downtime-incidents li strong {
    color: #212529;
}

.performance-analysis, .uptime-analysis, .downtime-incidents {
    border-bottom: 1px solid #E5E7EB;
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.detected-issues {
    margin-top: 10px;
    padding: 15px;
    background: #fff3f3;
    border-radius: 5px;
    border-left: 4px solid #dc3545;
}

.detected-issues ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.detected-issues li {
    margin-bottom: 5px;
    color: #721c24;
}

/*WEBSITE SPEEED*/

.show-more-container {
    position: relative;
    max-height: 150px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.show-more-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, white);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 10px;
}

.show-more-btn {
    background-color: #3B82F6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

.show-more-btn:hover {
    background-color: #2563EB;
}

.show-more-btn svg {
    margin-left: 5px;
}

.show-more-container.expanded {
    max-height: none;
}

.show-more-container.expanded .show-more-overlay {
    display: none;
}

.custom-shadow {
            filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
        }
        
        .input-shadow {
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }
        
        .select-custom {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
            background-position: right 0.75rem center;
            background-repeat: no-repeat;
            background-size: 1.25rem;
            padding-right: 2.5rem;
        }

        .banner-gradient {
            background: linear-gradient(90deg, #007bff 0%, #111827 100%);
            border: none;;
        }
        
        .banner-gradient h2,
        .banner-gradient p {
            color: white; /* Primer stilizacije */
            font-weight: bold;
        }


        .start-test-btn {
            background: #4CAF50;
            transition: all 0.3s ease;
        }

        .start-test-btn:hover {
            background: #45a049;
            transform: translateY(-1px);
        }

        .floating-dots {
            animation: float 3s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .status-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .banner h1 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .banner form {
        flex-direction: column;
    }
    
    .banner button {
        width: 100%;
    }
    
    .status-container {
        display: block!important;
    }
    
    .status-sections {
        padding: 0;
    }
    
    .popular-status, .recent-checks {
        margin-bottom: 20px;
    }
    
    .status-main-content, .response-time-history, .similar-websites-section, .troubleshooting-section, .comments-section, .troubleshooting-steps ul {
        padding: 2rem 10px!important;
    }
    
    .troubleshooting-steps ul {
        margin: 0!important;
    }
    
    .troubleshooting-steps li {
        list-style: none;
    }
}

/*ERROR*/
.login-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.alert {
    margin-bottom: 20px;
}

.badge {
    padding: 0.5em 1em;
}

.btn-group {
    gap: 5px;
}

.table td {
    vertical-align: middle;
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #007bff;
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    background-color: #3498db;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #e0f7fa, #ffffff);
    text-align: center;
    padding: 80px 20px;
}

.hero-content h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 30px;
}

/* Features Section */
.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 50px 20px;
    padding-top: 0;
    background-color: none;
}

.feature-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 280px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.icon {
    font-size: 2.5em;
    color: #007bff;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 0.5em;
    color: #333;
    margin-bottom: 10px;
}

.feature-card p {
    color: #666;
    font-size: 1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .features {
        flex-direction: column;
        align-items: center;
    }

    .feature-card {
        width: 90%;
    }
}