:root {
    --primary-color: #E32636;
    --secondary-color: #1a1a1a;
    --background-color: #ffffff;
    --text-color: #333333;
}

[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
    display: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    min-height: 100vh;
    background: url('assets/background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.main-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 40px 20px;
}

.shortener-container,
.url-history-container,
.about-container,
.faq-container {
    width: 100%;
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 30px;
}

.shortener-container {
    min-height: 60vh;
    background: url('./assets/cardBG.png') center/cover;
    padding: clamp(40px, 6vw, 60px);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.shortener-container > * {
    position: relative;
    z-index: 1;
}

.shortener-container h1 {
    font-size: clamp(2rem, 3.5vw, 2.7rem);
    color: white;
    margin-bottom: clamp(10px, 2vw, 15px);
    font-weight: 600;
    letter-spacing: -0.5px;
    width: 100%;
    text-align: center;
}

.subtitle {
    color: white;
    margin-bottom: clamp(20px, 3vw, 25px);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 400;
    width: 100%;
    text-align: center;
}

.url-input-container {
    margin-top: 24px;
    width: 50%;
    align-self: center;
}

.input-group {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    padding: clamp(8px, 1.5vw, 12px);
    margin-bottom: 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.input-group > div {
    display: flex;
    align-items: center;
    flex: 1;
}

.input-group .shorten-btn {
    margin-left: 8px;
}

.input-icon {
    color: #666;
    font-size: clamp(14px, 2vw, 16px);
    margin-left: 6px;
    margin-right: 6px
}

.url-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: clamp(14px, 2vw, 16px);
    color: var(--text-color);
    outline: none;
    padding: 8px 0;
    min-width: 0; /* This prevents input from expanding */
}

.url-input::placeholder {
    color: #999;
}

.shorten-btn {
    width: auto;
    padding: clamp(8px, 1.5vw, 12px) clamp(16px, 2vw, 24px);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: clamp(13px, 1.8vw, 14px);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.shorten-btn:hover {
    background-color: #cc1f2d;
    transform: translateY(-1px);
}

.shorten-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.shorten-btn[disabled]:hover {
    background: #E32636;
}

.shorten-btn[title] {
    position: relative;
}

.shorten-btn[disabled][title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 3px;
    z-index: 10;
}

.result {
    margin-top: 24px;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.result a {
    color: #ffffff;
    text-decoration: underline;
    font-size: 16px;
    word-break: break-all;
    flex: 1;
}

.result .copy-btn {
    padding: 8px 24px;
    border: none;
    border-radius: 8px;
    background: #E32636;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.result .copy-btn:hover {
    background: #CC1F2D;
    color: #ffffff;
    transform: translateY(-2px);
}

.copy-btn {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 12px;
    white-space: nowrap;
    font-weight: 500;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background-color: #cc1f2d;
    transform: translateY(-1px);
}

.copy-success {
    color: #4CAF50;
    font-size: 14px;
    margin-top: 4px;
}

.error {
    color: var(--primary-color);
    text-align: left;
    margin-top: 16px;
    font-weight: 500;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #282036 0%, #000000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay .loading {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #ff3366;
    animation: spin 1s ease-in-out infinite;
}

.loading-logo {
    width: 50px;  /* Adjust size as needed */
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 51, 102, 0.3));
}

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

.terms-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 12px;
    text-align: center;
}

.terms-text a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.terms-text a:hover {
    color: white;
    text-decoration: underline;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.about-content {
    padding-right: 20px;
    position: relative;
    z-index: 1;
}

.about-section {
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), url('./assets/doodle1.jpg') center/cover fixed;
    border-radius: 5px;
    border: 1px, solid, #3D3D3D;
    padding: 40px;
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 5px;
    border: 1px, solid, #3D3D3D;
    z-index: 0;
}

.about-section h2, .faq-section h2 {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
}

.about-section p {
    color: white;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.timeline-section {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(218, 31, 38, 0.37);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.timeline-item i {
    color: #E32636;
    font-size: 24px;
    min-width: 24px;
}

.timeline-content h3 {
    color: white;
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 4px 0;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    margin: 0;
}

.faq-container {
    width: 100%;
    max-width: 1152px;
    margin: 0 auto 30px auto;
    padding: 0 20px;
}

.faq-section {
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), url('./assets/doodle2.jpg') center/cover fixed;
    border-radius: 5px;
    border: 1px, solid, #3D3D3D;
    padding: 40px;
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 5px;
    border: 1px, solid, #3D3D3D;
    z-index: 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 15px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(218, 31, 38, 0.37);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(218, 31, 38, 0.47);
    transform: translateY(-1px);
}

.faq-item.active {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(218, 31, 38, 0.57);
}

.faq-question {
    color: white;
    font-size: 14px;
    font-weight: normal;
    margin: 0;
    padding: 0;
}

.faq-answer {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    margin-top: 8px;
    padding-top: 8px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.accordion {
    background-color: transparent;
    color: white;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 14px;
    font-weight: normal;
    transition: 0.4s;
    border-radius: 5px;
}

.accordion:after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    margin-left: 10px;
}

.accordion.active:after {
    content: '-';
}

.accordion:hover {
    background: rgba(255, 255, 255, 0.1);
}

.panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
}

.panel p {
    color: white;
    font-size: 12px;
    margin: 0;
    padding: 8px 18px 18px 18px;
}

.auth-section {
    text-align: center;
    margin: 20px 0;
}

.auth-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn:hover {
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.google-icon {
    width: 18px;
    height: 18px;
}

.user-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.profile-section:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.profile-section:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.profile-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

.profile-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-icon.glassy-effect {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.profile-icon.glassy-effect:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.profile-icon.glassy-effect img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.user-dashboard {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.power-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.power-btn i {
    font-size: 1.2rem;
    color: #4CAF50;
    transition: all 0.3s ease;
}

.power-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.power-btn:hover i {
    color: #45a049;
    transform: rotate(180deg);
}

.user-name {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
}

.logout-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.logout-btn i {
    font-size: 1.2rem;
    color: #E32636;
    transition: all 0.3s ease;
}

.logout-btn:hover i {
    color: #ff1a1a;
    transform: rotate(180deg);
}

.power-btn.logout-btn i {
    color: #E32636;
}

.power-btn.logout-btn:hover i {
    color: #ff1a1a;
}

.urls-section {
    margin-top: 20px;
}

.url-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background: transparent;
}

.url-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.url-item:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.url-details {
    flex: 1;
    min-width: 0;
}

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

.url-stats {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    font-size: 10px;
    color: #888;
}

.url-stats i {
    margin-right: 4px;
}

.url-actions {
    display: flex;
    gap: 8px;
    margin-left: 15px;
}

.action-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #666;
}

.action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.copy-btn:hover {
    color: #007bff;
}

.delete-btn:hover {
    color: #dc3545;
}

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

/* URL History Section */
.url-history-container {
    margin: 0 0 30px 0;
    padding: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    border: 1px solid #3D3D3D;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
    position: relative;
}

.url-history-container h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 17px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.short-url {
    font-size: 14px;
    font-weight: 600;
    color: #66b3ff;
}

.long-url {
    color: #ccc;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 500px;
}

.url-stats {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    font-size: 10px;
    color: #aaa;
}

.url-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.url-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgb(0, 0, 0);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.url-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.url-details {
    flex: 1;
    min-width: 0;
}

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

.url-stats {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    font-size: 10px;
    color: #888;
}

.url-stats i {
    margin-right: 4px;
}

.url-actions {
    display: flex;
    gap: 8px;
    margin-left: 15px;
}

.action-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #666;
}

.action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.copy-btn:hover {
    color: #007bff;
}

.delete-btn:hover {
    color: #dc3545;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.page-btn {
    background: none;
    border: none;
    color: #fff;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.page-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.page-btn:disabled {
    color: #666;
    cursor: not-allowed;
}

.page-info {
    color: #fff;
    font-size: 14px;
}

@media (max-width: 768px) {
    .main-container {
        gap: 40px;
    }

    .shortener-container {
        min-height: 50vh;
        padding: 30px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        padding-right: 0;
    }

    .about-section,
    .faq-section {
        padding: 30px;
    }

    .url-input-container {
        width: 100%;
    }

    .input-group {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .shorten-btn {
        width: 100%;
        padding: 12px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faq-column {
        gap: 10px;
    }

    .url-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .url-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }

    .long-url {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 20px 10px;
        gap: 30px;
    }

    .shortener-container,
    .about-section,
    .faq-section {
        padding: 20px;
    }

    h1 {
        font-size: 1.8rem;
    }

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

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');
