/* Global Styles */
:root {
    --primary-color: #4a6bff;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7ff;
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

button {
    cursor: pointer;
    transition: all 0.3s ease;
}

.hidden {
    display: none !important;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
}

header nav a {
    margin-left: 25px;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

header nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #f5f7ff 0%, #e8ecff 100%);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.hero p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

/* Shortener Box */
.shortener-box {
    display: flex;
    max-width: 800px;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.shortener-box input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.shortener-box button {
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: 600;
}

.shortener-box button:hover {
    background-color: #3a5bef;
}

/* Result Container */
#result-container {
    max-width: 800px;
    margin: 0 auto;
}

.result-box {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

#original-url {
    display: block;
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.short-url-container {
    display: flex;
    align-items: center;
}

#short-url {
    flex: 1;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 500;
    margin-right: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#copy-btn {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

#copy-btn:hover {
    background-color: #3a5bef;
}

#copy-btn i {
    margin-right: 5px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: white;
}

.features h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: var(--border-radius);
    background-color: var(--light-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background-color: #f5f7ff;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
}

.steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step p {
    font-size: 1.1rem;
    color: var(--dark-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    color: white;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    header nav {
        margin-top: 15px;
    }

    header nav a {
        margin: 0 10px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .shortener-box {
        flex-direction: column;
    }

    .shortener-box input {
        width: 100%;
    }

    .shortener-box button {
        width: 100%;
        padding: 15px;
    }

    .short-url-container {
        flex-direction: column;
        align-items: flex-start;
    }

    #short-url {
        margin-bottom: 10px;
        margin-right: 0;
        width: 100%;
    }

    #copy-btn {
        width: 100%;
    }
}

/* Statistics Section */
.statistics {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.statistics h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--dark-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-card h3 {
    margin: 10px 0;
    color: var(--dark-color);
    font-size: 1.2rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0;
}

.stat-desc {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.recent-activity {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.recent-activity h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.activity-table-container {
    overflow-x: auto;
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.activity-table th,
.activity-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.activity-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--dark-color);
}

.activity-table tr:hover {
    background-color: #f8f9fa;
}

.activity-table td i {
    margin-right: 8px;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .recent-activity {
        padding: 20px;
    }
    
    .activity-table th,
    .activity-table td {
        padding: 10px;
        font-size: 14px;
    }
}