/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top, #2a2a3f, #121218 70%);
    color: #f5f5f5;
    line-height: 1.7;
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Container */
.app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Header */
.app-header {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    background: rgba(18, 18, 28, 0.85);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    gap: 15px;
    width: 100%;
}

.app-header h1 {
    color: #00d2ff;
    font-size: 24px;
    font-weight: 600;
    white-space: nowrap;
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #00d2ff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}

.mobile-menu-btn:hover {
    background: rgba(0, 210, 255, 0.1);
}

.mobile-nav {
    display: none;
    background: rgba(25, 25, 35, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mobile-nav.active {
    display: block;
    max-height: 300px;
    padding: 20px;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.logout-btn {
    background: linear-gradient(135deg, #ff416c, #ff6b6b);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 6px 15px rgba(255, 65, 108, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 65, 108, 0.5);
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.browse-articles-btn {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 6px 15px rgba(142, 68, 173, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.browse-articles-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(142, 68, 173, 0.5);
}

/* Search and Filter */
.search-filter-container {
    background: rgba(35, 35, 50, 0.8);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
    max-width: 100%;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0bec5;
    z-index: 1;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(25, 25, 35, 0.9);
    color: #f0f0f0;
    font-size: 15px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.search-box input:focus {
    outline: none;
    border-color: rgba(0, 188, 212, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.25), inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.filter-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
    justify-content: flex-end;
}

.filter-controls select {
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(25, 25, 35, 0.9);
    color: #f0f0f0;
    font-size: 14px;
    cursor: pointer;
    min-width: 140px;
    box-sizing: border-box;
}

.clear-filters-btn {
    background: rgba(66, 66, 88, 0.9);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.clear-filters-btn:hover {
    background: rgba(76, 76, 98, 0.9);
    transform: translateY(-2px);
}

/* Articles Browser */
.articles-browser {
    background: rgba(35, 35, 50, 0.9);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    box-sizing: border-box;
}

.browser-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.browser-header h3 {
    color: #00d2ff;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.close-browser-btn {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: none;
    padding: 8px 15px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.close-browser-btn:hover {
    background: rgba(244, 67, 54, 0.4);
    transform: translateY(-2px);
}

/* Articles List */
.articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    width: 100%;
}

.article-card {
    background: rgba(45, 45, 65, 0.8);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.article-image {
    height: 180px;
    overflow: hidden;
    background: rgba(30, 30, 45, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    color: #b0bec5;
    font-size: 48px;
    opacity: 0.5;
}

.article-content {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.article-content h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #00d2ff;
    line-height: 1.4;
    word-wrap: break-word;
}

.article-excerpt {
    color: #d0d0d0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    word-wrap: break-word;
}

.article-actions {
    display: flex;
    justify-content: flex-end;
}

.add-to-favourites-btn {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.add-to-favourites-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.no-articles {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 30px;
    background: rgba(35, 35, 50, 0.6);
    border-radius: 16px;
    color: #b0bec5;
    font-style: italic;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

.no-articles i {
    font-size: 48px;
    opacity: 0.5;
}

/* Article Badge */
.article-badge {
    margin-right: 8px;
    font-size: 16px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 500;
    z-index: 1000;
    max-width: 400px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
}

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

.notification.success {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border-left: 4px solid #66bb6a;
}

.notification.error {
    background: linear-gradient(135deg, #f44336, #e53935);
    color: white;
    border-left: 4px solid #ef5350;
}

.notification.info {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    border-left: 4px solid #42a5f5;
}

/* Auth Container */
.auth-container {
    max-width: 450px;
    margin: 40px auto;
    background: rgba(30, 30, 42, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.auth-form h2 {
    margin-bottom: 30px;
    text-align: center;
    color: #00d2ff;
    font-size: 28px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(35, 35, 50, 0.9);
    color: #f0f0f0;
    font-size: 16px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(0, 188, 212, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.25), inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    width: 100%;
}

.auth-buttons button {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 0;
}

.auth-buttons button:first-child {
    background: linear-gradient(135deg, #36d1dc, #5b86e5);
    color: white;
    box-shadow: 0 6px 15px rgba(54, 209, 220, 0.4);
}

.auth-buttons button:first-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(54, 209, 220, 0.5);
}

.auth-buttons button:last-child {
    background: rgba(66, 66, 88, 0.9);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-buttons button:last-child:hover {
    background: rgba(76, 76, 98, 0.9);
    transform: translateY(-2px);
}

/* Favourites container */
.favourites-container {
    background: rgba(30, 30, 42, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}

.favourites-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 15px;
    width: 100%;
}

.favourites-header h2 {
    color: #00d2ff;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.add-favourite-btn {
    background: linear-gradient(135deg, #36d1dc, #5b86e5);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 6px 15px rgba(91, 134, 229, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.add-favourite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(91, 134, 229, 0.5);
}

/* Favourite Form */
.favourite-form {
    background: rgba(35, 35, 50, 0.9);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: inset 0 2px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: none;
    width: 100%;
    box-sizing: border-box;
}

.submit-btn {
    background: linear-gradient(135deg, #36d1dc, #5b86e5);
    color: white;
    border: none;
    padding: 15px 0;
    width: 100%;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 6px 15px rgba(91, 134, 229, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(91, 134, 229, 0.5);
}

/* Favourites Grid */
.favourites-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    width: 100%;
}

.no-favourites {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 30px;
    background: rgba(35, 35, 50, 0.6);
    border-radius: 16px;
    color: #b0bec5;
    font-style: italic;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

.no-favourites i {
    font-size: 48px;
    opacity: 0.5;
}

/* Favourite Card */
.favourite-card {
    background: rgba(35, 35, 50, 0.8);
    border-radius: 16px;
    overflow: hidden;
    border-top: 4px solid;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transform: scale(1);
    word-break: break-word;
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.favourite-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Priority colors */
.priority-low {
    border-color: #8bc34a;
    border-image: linear-gradient(to right, #8bc34a, #4caf50) 1;
}
.priority-medium {
    border-color: #ff9800;
    border-image: linear-gradient(to right, #ff9800, #ff5722) 1;
}
.priority-high {
    border-color: #f44336;
    border-image: linear-gradient(to right, #f44336, #e91e63) 1;
}

.status-completed {
    opacity: 0.8;
}
.status-completed::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    color: #4caf50;
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.favourite-header {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.favourite-header h3 {
    font-size: 18px;
    overflow-wrap: break-word;
    max-width: 70%;
    font-weight: 600;
    line-height: 1.4;
    display: flex;
    align-items: center;
    margin: 0;
}

.favourite-actions {
    display: flex;
    gap: 8px;
}

.delete-btn {
    background-color: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.delete-btn:hover {
    background-color: rgba(244, 67, 54, 0.4);
    transform: translateY(-2px);
}

.favourite-details {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}
.favourite-description {
    margin-bottom: 20px;
    color: #d0d0d0;
    line-height: 1.6;
    font-size: 14px;
    word-wrap: break-word;
}

.favourite-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
    width: 100%;
}

.priority-badge {
    padding: 6px 12px;
    border-radius: 20px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.priority-badge.low { 
    background: linear-gradient(to right, #8bc34a, #4caf50);
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}
.priority-badge.medium { 
    background: linear-gradient(to right, #ff9800, #ff5722);
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.3);
}
.priority-badge.high { 
    background: linear-gradient(to right, #f44336, #e91e63);
    box-shadow: 0 3px 10px rgba(244, 67, 54, 0.3);
}

.status-select {
    background-color: #2f2f3d;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.status-select.completed { 
    background: linear-gradient(to right, #4caf50, #009688);
    border: none;
}
.status-select.in-progress { 
    background: linear-gradient(to right, #2196f3, #03a9f4);
    border: none;
}
.status-select.pending { 
    background: linear-gradient(to right, #9e9e9e, #757575);
    border: none;
}

.favourite-timestamps {
    margin-top: 20px;
    font-size: 12px;
    color: #9e9e9e;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

/* Loading screen */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 18px;
    color: #00d2ff;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.loading::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 210, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00d2ff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Profile Picture Styles */
.profile-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.profile-pic-container {
    position: relative;
    cursor: pointer;
}

.profile-pic {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00d2ff;
    transition: all 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: right;
}

.user-name {
    font-weight: 600;
    color: #00d2ff;
    font-size: 14px;
    white-space: nowrap;
}

.user-email {
    font-size: 12px;
    color: #b0bec5;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
}

/* Profile Modal */
.profile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.profile-modal-content {
    background: rgba(30, 30, 42, 0.95);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.profile-modal h3 {
    color: #00d2ff;
    margin-bottom: 20px;
    font-size: 22px;
}

.current-profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid #00d2ff;
    display: block;
}

.upload-area {
    border: 2px dashed rgba(0, 210, 255, 0.3);
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-sizing: border-box;
}

.upload-area:hover {
    border-color: #00d2ff;
    background: rgba(0, 210, 255, 0.05);
}

.upload-area i {
    font-size: 48px;
    color: #00d2ff;
    margin-bottom: 10px;
}

.upload-area p {
    margin: 10px 0;
    color: #b0bec5;
}

.upload-btn {
    background: linear-gradient(135deg, #36d1dc, #5b86e5);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    margin: 10px 5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    transform: translateY(-2px);
}

.upload-btn.cancel {
    background: linear-gradient(135deg, #ff416c, #ff6b6b);
}

.upload-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 15px auto;
    border: 3px solid #00d2ff;
    display: none;
}

.uploading {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.uploading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 210, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00d2ff;
    animation: spin 1s ease-in-out infinite;
}

/* Remove file input default styling */
.file-input {
    display: none;
}

/* Profile actions */
.profile-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
    .app {
        padding: 15px;
    }
    
    .header-content {
        flex-wrap: wrap;
        padding: 15px 20px;
    }
    
    .app-header h1 {
        font-size: 20px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .user-info {
        display: none;
    }
    
    .mobile-nav.active + .user-info {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .auth-container {
        margin: 20px auto;
        padding: 30px 20px;
    }
    
    .auth-buttons {
        flex-direction: column;
    }
    
    .favourites-container {
        padding: 20px 15px;
    }
    
    .favourite-form {
        padding: 20px;
    }
    
    .favourites-list, .articles-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .favourites-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 20px;
    }
    
    .favourite-meta {
        grid-template-columns: 1fr;
    }
    
    .search-filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 20px;
    }
    
    .filter-controls {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-controls select {
        width: 100%;
    }
    
    .notification {
        left: 15px;
        right: 15px;
        max-width: none;
    }
    
    .profile-section {
        justify-content: center;
        text-align: center;
    }
    
    .profile-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .app {
        padding: 10px;
    }
    
    .header-content {
        padding: 12px 15px;
    }
    
    .app-header h1 {
        font-size: 18px;
    }
    
    .auth-form h2 {
        font-size: 24px;
    }
    
    .favourites-header h2 {
        font-size: 20px;
    }
    
    .favourite-card, .article-card {
        margin: 0;
    }
    
    .browser-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .add-favourite-btn, .browse-articles-btn {
        width: 100%;
        justify-content: center;
    }
    
    .search-box {
        min-width: 100%;
    }
}

/* Glass effect enhancements */
.auth-container,
.favourites-container,
.favourite-card,
.article-card,
.app-header,
.articles-browser,
.search-filter-container {
    position: relative;
    overflow: hidden;
}

.auth-container::before,
.favourites-container::before,
.favourite-card::before,
.article-card::before,
.app-header::before,
.articles-browser::before,
.search-filter-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
}