@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

/* Base styles */
body {
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: black;
    margin: 0;
    padding: 0;
}
h1, h2, span, p, a, li {
    font-family: 'Quicksand', sans-serif;

}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styles */
header {
    text-align: left;
    margin-bottom: 30px;
}

h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 0;
}

#subheading {
    color: #7f8c8d;
    font-size: 1.2rem;
    margin-top: 5px;
}

nav a {
    color: var(--text-color);
    padding: 5px 0px;  /* Added padding for larger click area */
    margin-right: 10px;
    display: inline-block;
    transition: color 0.3s, background-color 0.3s;
    border-radius: 5px;
}

#hero-text {
    margin-bottom: 0;
}

#hero-subtext {
    margin-top: 0;
}

/* Card styles */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}
/* Tab styles */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.tab-btn.active {
    opacity: 1;
    border-bottom: 2px solid #3498db;
}

.tab-content {
    display: none;
    margin-bottom: 20px;
}

.tab-content.active {
    display: block;
}

/* Button styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.1s;
    margin: 5px 5px 5px 0px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-danger {
    background-color: #2ecc71;
    color: #fff;
}

.btn-danger:hover {
    background-color: #27ae60;
}

.btn-danger {
    background-color: #cc2e2e;
    color: #fff;
}

.btn-danger:hover {
    background-color: #ae2727;
}

.btn-tertiary {
    background-color: #e74c3c;
    color: #fff;
}

.btn-tertiary:hover {
    background-color: #c0392b;
}

/* Input styles */
input[type="text"],
input[type="password"] {
    display: grid;
    place-self: center;
    width: 97%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* File management styles */
.file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.file-list-container {
    margin-top: 20px;
}

.file-list-container h3 {
    font-size: 1.2rem;
    color: var(--bg-color);
    margin-bottom: 10px;
}

#filesToUploadList,
#uploadedFilesList {
    list-style-type: none;
    padding: 0;
}

.file-item {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Room details styles */
.detail-item {
    display: grid;
    grid-template-columns: 50px auto;
    column-gap: 50px;
    margin-bottom: 10px;
}

.detail-item label {
    font-weight: bold;
    margin-right: 10px;
    width: fit-content;
    height: 10px;
}

.detail-item p {
    width: fit-content;
    margin-top: 0px !important;
}

.password-container {
    display: flex;
    align-items: center;
}

#folderPassword {
    margin-right: 10px;
}

/* QR code styles */
#qrCodeContainer {
    margin-top: 20px;
    text-align: center;
}

#qrCodeImage {
    max-width: 200px;
    height: auto;
}

/* Floating info panel styles */
#floating-info-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background-color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
}

#floating-info-panel:hover {
    width: auto;
    border-radius: 20px;
    padding: 10px 20px;
}

.info-icon {
    font-size: 24px;
}

.info-content {
    display: none;
    white-space: nowrap;
}

#floating-info-panel:hover .info-icon {
    display: none;
}

#floating-info-panel:hover .info-content {
    display: block;
}

.room-stat {
    display: flex;
    align-items: center;
    margin: 5px 0;
  }
  
.icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

#session-remaining,
#data-remaining {
    margin: 0;
    font-size: 14px;
    color: #333;
}

/* Utility classes */
.hidden {
    display: none;
}

.googleSignInButton {
    margin-left: 0;
}

/* Landing Page */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    justify-content: space-between;
}

.landing-card {
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.icon {
    font-size: 28px;
    color: #007AFF;
    margin-bottom: 10px;
}

#landing-page-1 {
    margin-top: 50px;
}

.signup {
    display: grid;
    place-items: center;
    margin: 50px 0px 100px 0px;
    text-align: center;
}

.signup p {
font-size: 0.8em;
}

.pricing {
    font-size: 1.5em;
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    display: inline-block;
}

.original-price {
    text-decoration: line-through;
    opacity: 0.7;
    margin-right: 15px;
    font-weight: 300;
}

.discounted-price {
    font-size: 36px;
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    margin-bottom: 30px;
}

.price-label {
    display: block;
    font-size: 0.6em;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}


#call-to-action-1 {
    display: grid;
    text-align: center;
    color: #f1c40f;
    background-color: #333;
}

#landing-page-2 {
    display: grid;
    place-items: center;
    text-align: center;
    margin-top: 50px;
}

.emphasis-text {
    background-color:#002cbe;
    color: #ffea00;
    padding: 2px;
}

#landing-page-2 #call-to-action-2.sparkle-button {
    width: 50%;
  }

#landing-page-2 #call-to-action-2.sparkle-button span {
  font-size: 34px;
}

/* CSS */
.button-64:hover {
  background-color: #fff;
}

.button-64:active {
  box-shadow: #422800 2px 2px 0 0;
  transform: translate(2px, 2px);
}

.button-64 {
    background-color: #fbeee0;
    border: 2px solid #422800;
    border-radius: 30px;
    box-shadow: #422800 4px 4px 0 0;
    color: #422800;
    cursor: pointer;
    display: inline-block;
    font-weight: 600;
    font-size: 18px;
    padding: 0 18px;
    line-height: 50px;
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
  }

@media (max-width: 600px) {
  .button-64 {
    font-size: 24px;
    min-width: 196px;
  }

  #landing-page-2 #call-to-action-2.sparkle-button {
    width: 95%;
  }

}

/* top landing page section */
.features-section {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 60px 20px;
    border-radius: 15px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); */
}

.features-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    /* color: #f1c40f; */
    /* text-shadow: 0 0 10px rgba(241, 196, 15, 0.5); */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
}

.feature-card {
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(241, 196, 15, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(241, 196, 15, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #000;
}

.feature-description {
    font-size: 1em;
    color: #4f4f4f;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}


/* Premium landing page section */
.premium-section {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: #ffffff;
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 800px;
    margin-top: 150px;
}

.premium-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.premium-highlight {
    background-color: #ffd700;
    color: #1a237e;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transform: rotate(-2deg);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
}

.premium-section .pricing {
    display: grid;
}

.features-list {
    list-style-type: none;
    padding: 0;
    margin: 30px 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    margin: 10px;
    flex-basis: calc(33.333% - 20px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.cta-button {
    background-color: #ffd700;
    color: #1a237e;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: #ffea00;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .feature-item {
        flex-basis: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .feature-item {
        flex-basis: 100%;
    }
}

/* Toggle password */

.input-password-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.toggle-password img {
    width: 20px;
    height: 20px;
    display: block;
}



/* Responsive design */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
        margin: 5px 0px 0px 0px;
    }

    .file-actions {
        flex-direction: column;
    }

    /* Landing Page */
    .grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
        justify-content: space-between;
    }

    .features-title {
        font-size: 24px;
    }

}

/* Toast Messages */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-color);
    padding: 15px 20px;
    margin-bottom: 10px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    max-width: 300px;
    font-size: 14px;
    transform: translateX(100%);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success {
    background: rgba(46, 204, 113, 0.25);
    border-left: 4px solid #2ecc71;
}

.toast.warning {
    background: rgba(241, 196, 15, 0.25);
    border-left: 4px solid #f1c40f;
}

.toast.error {
    background: rgba(231, 76, 60, 0.25);
    border-left: 4px solid #e74c3c;
}

.toast-icon {
    margin-right: 10px;
    font-size: 18px;
}

.toast-message {
    flex-grow: 1;
}

.toast-close {
    cursor: pointer;
    padding-left: 10px;
    font-size: 20px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}


/* File upload styles */
.file-item {
    background-color: var(--card-bg);
    border: 1px solid var(--text-color);
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-item.loading,
.file-item.uploading {
    opacity: 0.7;
}

.throbber {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-color);
    border-top: 2px solid var(--btn-primary-bg);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.progress-bar {
    width: 100px;
    height: 5px;
    background-color: var(--bg-color);
    border-radius: 2.5px;
    overflow: hidden;
}

.progress {
    width: 0;
    height: 100%;
    background-color: var(--btn-primary-bg);
    transition: width 0.3s ease-in-out;
}

/* Rooms */
#roomList li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

#roomList li.current-room {
    background-color: #f0f0f0;
    font-weight: bold;
}

#roomList li span {
    flex-grow: 1;
}

#roomList li button {
    margin-left: 10px;
}


/* My vault */
.tab-btn.vault-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
  }
  
  .tab-btn.vault-btn:hover,
  .tab-btn.vault-btn.active {
    opacity: 1;
    border-bottom-color: #3498db;
  }
  
  .tab-btn.vault-btn .vault-icon {
    width: 20px;
    height: 20px;
  }
  
  .tab-btn.vault-btn span {
    line-height: 1;
  }
  
  @media (max-width: 600px) {
    .tab-btn.vault-btn {
      padding: 8px 12px;
      font-size: 0.9rem;
    }
    
    .tab-btn.vault-btn .vault-icon {
      width: 18px;
      height: 18px;
    }
  }
  

  /* Need help */
#need-help {
    display: grid;
}

.popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#feedbackButton {
    background-color: var(--bg-color);
    color: var(--text-color);
    background-color: #FFA500; /* Amber color */
    color: #1a1a1a; /* Dark text for contrast */
    border: none;
    border-radius: 5px; /* Pill shape */
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

#feedbackButton:hover {
    background-color: #FFB52E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#feedbackButton::before {
    content: "❓"; /* Exclamation mark emoji as icon */
    font-size: 16px;
    margin-right: 4px;
}

/* Add a subtle shine effect */
#feedbackButton::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.2) 40%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.2) 60%,
        rgba(255, 255, 255, 0.2) 100%
    ); */
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

#feedbackButton:hover::after {
    left: 100%;
    top: 100%;
}

#feedback-details {
    font-size: large;
}

.feedback-form {
    text-align: left;
    display: grid;
    background: linear-gradient(135deg, #1a237e, #283593);
    color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    font-family: 'Quicksand', sans-serif;
}

.feedback-form span {
    display: block;
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: bold;
}

.feedback-form textarea {
    height: 100px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    margin-bottom: 15px;
    font-family: 'Quicksand', sans-serif;
    resize: vertical;
}

.feedback-form label {
    display: block;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.feedback-form input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    margin-bottom: 15px;
    font-family: 'Quicksand', sans-serif;
}

.feedback-form button {
    background-color: #ffd700;
    color: #1a237e;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
}

.feedback-form button:hover {
    background-color: #ffea00;
    transform: scale(1.05);
}

.close-modal {
    font-size: 24px;
    color: #ffffff;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

@media (max-width: 480px) {
    .feedback-form {
        width: 95%;
        padding: 20px;
    }
}
 /* end feedback */

 /* New styles for the consolidated Secure File Rooms tab */
#secure-file-rooms-tab {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.file-room-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.create-room, .join-room {
    flex: 1;
    min-width: 300px;
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.room-management {
    background-color: #f8f9fa;
    border-radius: 8px;
}

#roomList {
    list-style-type: none;
    padding: 0;
}

#roomList li {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#roomList li.current-room {
    background-color: #e8f0fe;
    border-color: #4285f4;
}

.file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.file-list-container {
    background-color: var(--bg-color);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
}

.file-list-container h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .file-room-actions {
        flex-direction: column;
    }

    .create-room, .join-room {
        width: 100%;
    }
}

/* Existing styles for buttons, inputs, etc. remain unchanged */

/* Styles for collapsible sections */
.collapsible-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--bg-color);
    cursor: pointer;
}

.section-header h3 {
    margin: 0;
}

.toggle-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.section-content {
    padding: 20px;
    background-color: var(--bg-color);
    transition: max-height 0.3s ease-out;
    max-height: 1000px; /* Adjust this value based on your content */
    overflow: hidden;
}

.collapsible-section.collapsed .section-content {
    max-height: 0;
    padding: 0 20px;
}

.collapsible-section.collapsed .toggle-btn {
    transform: rotate(-90deg);
}

/* Existing styles for buttons, inputs, etc. remain unchanged */

/* FIle management */
#file-management {
    display: grid;
}

#real-footer {
    background-color: var(--text-color);
    color: var(--bg-color);
    display: grid;
    text-align: center;
}
#real-footer a {
    color: blue;
    background-color: white;
}