/* 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;
}

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

a {
    color: #4a6ee0;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    border: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background-color: #4a6ee0;
    color: white;
}

.btn-primary:hover {
    background-color: #3a5ecc;
}

.btn-secondary {
    background-color: #e9ecef;
    color: #333;
}

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

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
}

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

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a6ee0;
}

nav ul {
    list-style: none;
    display: flex;
}

nav li {
    margin-left: 20px;
}

nav a {
    color: #555;
    font-weight: 500;
}

nav a:hover {
    color: #4a6ee0;
}

/* Main content */
main {
    min-height: calc(100vh - 140px);
    padding: 30px 0;
}

/* Messages */
.messages {
    margin-bottom: 20px;
}

.message {
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.message-success {
    background-color: #d4edda;
    color: #155724;
}

.message-error {
    background-color: #f8d7da;
    color: #721c24;
}

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

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

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

.form-input, input[type="text"], input[type="password"], input[type="email"], input[type="url"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
}

.form-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Auth pages */
.auth-form {
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auth-form h1 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.auth-links {
    margin-top: 20px;
    text-align: center;
}

/* Home page */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 40px 0;
}

.simple-hero {
    text-align: center;
    padding: 80px 0;
}

.simple-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #333;
}

.simple-hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.simple-hero .cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background-color: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-icon {
    font-size: 5rem;
}

.features {
    margin: 60px 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.feature-cards {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.feature-card {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #333;
}

/* Dashboard */
.dashboard h1 {
    margin-bottom: 10px;
}

.dashboard > p {
    margin-bottom: 30px;
    color: #666;
}

.dashboard-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.url-form-container {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.url-form-container h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.url-list-container {
    flex: 2;
    min-width: 300px;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.url-list-container h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.url-card {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.url-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.short-url, .original-url {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.truncate-text {
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.url-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
}

/* Share options */
.share-options {
    margin-top: 12px;
    border-top: 1px solid #e9ecef;
    padding-top: 12px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.share-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.share-btn:hover {
    opacity: 0.9;
    text-decoration: none;
}

.twitter-share {
    background-color: #1DA1F2;
}

.facebook-share {
    background-color: #4267B2;
}

.whatsapp-share {
    background-color: #25D366;
}

.email-share {
    background-color: #333;
}

/* Copy button */
.btn-copy {
    padding: 2px 8px;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-left: 8px;
    transition: all 0.2s ease;
}

.btn-copy:hover {
    background-color: #dee2e6;
}

.btn-copy.copied {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

.no-links {
    text-align: center;
    color: #666;
    padding: 20px 0;
}

/* Footer */
footer {
    background-color: #f1f3f5;
    padding: 20px 0;
    text-align: center;
    color: #6c757d;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .feature-cards {
        flex-direction: column;
    }
    
    .dashboard-content {
        flex-direction: column;
    }
}