/* AWS Professional Theme */
:root {
    --aws-primary: #FF9900;
    --aws-secondary: #232F3E;
    --aws-accent: #4B9CD3;
    --aws-dark: #161E2D;
    --aws-light: #F2F3F3;
    --aws-gray: #6c757d;
    --aws-success: #1B660F;
    --aws-warning: #FF9900;
    --aws-danger: #D13212;
    --aws-white: #ffffff;
    --aws-border: #D5DBDB;
    
    /* Light mode colors */
    --bg-primary: linear-gradient(135deg, #F2F3F3 0%, #E8EAED 100%);
    --bg-secondary: #ffffff;
    --bg-card: linear-gradient(145deg, #ffffff 0%, #fefefe 50%, #f8f9fa 100%);
    --text-primary: #232F3E;
    --text-secondary: #6c757d;
    --border-color: rgba(255, 153, 0, 0.15);
}

body[data-theme="dark"] {
    --aws-primary: #FF9900;
    --aws-secondary: #161E2D;
    --aws-accent: #4B9CD3;
    --aws-white: #2d3748;
    --aws-light: #4a5568;
    --aws-border: #4a5568;
    
    /* Dark mode colors */
    --bg-primary: linear-gradient(135deg, #161E2D 0%, #232F3E 100%);
    --bg-secondary: #232F3E;
    --bg-card: linear-gradient(145deg, #232F3E 0%, #4a5568 30%, #232F3E 70%, #161E2D 100%);
    --text-primary: #f7fafc;
    --text-secondary: #cbd5e0;
    --border-color: rgba(255, 153, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: all 0.3s ease;
}

body.login-page {
    overflow: auto;
}

/* Header Styles */
.header {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e9ecef;
    padding: 0;
    color: #232F3E;
    position: relative;
}

.header-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: none;
    margin: 0;
    padding: 16px 24px;
    width: 100%;
    background: #ffffff;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
    order: 0;
    margin-right: 0;
    padding-left: 0;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.header-logo {
    height: 32px;
    width: auto;
}

.header-logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--wipro-primary);
}

.brand-text h1 {
    color: var(--aws-primary);
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
    line-height: 1;
    text-shadow: none;
}

.brand-subtitle {
    color: #000000;
    font-size: 0.95rem;
    font-weight: 400;
    margin-top: 2px;
    line-height: 1;
}

.user-info {
    margin-left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    color: #232F3E;
    width: auto;
}

.welcome-text {
    font-weight: 500;
    color: #000000;
    font-size: 0.95rem;
}

.welcome-text span {
    color: var(--aws-primary);
    font-weight: 600;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-add {
    background: linear-gradient(135deg, var(--aws-primary) 0%, #E88B00 100%);
    color: var(--aws-white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
}

.btn-add:hover {
    background: linear-gradient(135deg, #E88B00 0%, var(--aws-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
}

.btn-logout {
    background: var(--wipro-white);
    color: var(--wipro-gray);
    border: 2px solid var(--wipro-border);
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-logout:hover {
    background: var(--wipro-danger);
    color: var(--wipro-white);
    border-color: var(--wipro-danger);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.btn-settings {
    background: linear-gradient(135deg, var(--aws-accent) 0%, #3a8bc7 100%);
    color: #ffffff;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(75, 156, 211, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-settings::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.btn-settings:hover::before {
    left: 100%;
}

.btn-settings:hover {
    background: linear-gradient(135deg, #3a8bc7 0%, var(--aws-primary) 100%);
    transform: translateY(-2px) rotate(90deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(75, 156, 211, 0.4);
}

/* Admin Panel Styles */
.admin-panel {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.admin-header h2 {
    color: var(--aws-secondary);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.users-table {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.12);
    border: 1px solid var(--border-color);
}

.users-table table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.users-table th {
    background: linear-gradient(135deg, var(--aws-accent) 0%, #3a8bc7 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table tbody tr {
    transition: all 0.3s ease;
}

.users-table tbody tr:hover {
    background: rgba(75, 156, 211, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(75, 156, 211, 0.15);
}

.role-badge {
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.role-admin {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.role-edit {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
    border: 1px solid #fbbf24;
}

.role-view {
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
    color: #0369a1;
    border: 1px solid #93c5fd;
}

.btn-edit-user,
.btn-modify-user,
.btn-delete-user {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-edit-user {
    background: linear-gradient(135deg, var(--aws-accent) 0%, #3a8bc7 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(75, 156, 211, 0.3);
}

.btn-edit-user:hover {
    background: linear-gradient(135deg, #3a8bc7 0%, var(--aws-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(75, 156, 211, 0.4);
}

.btn-modify-user {
    background: linear-gradient(135deg, var(--aws-accent) 0%, #3a8bc7 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(75, 156, 211, 0.3);
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-modify-user:hover {
    background: linear-gradient(135deg, #3a8bc7 0%, var(--aws-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(75, 156, 211, 0.4);
}

.btn-delete-user {
    background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.btn-delete-user:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

/* Enhanced Form Select Styling */
.form-group select {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #d5dbdb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
}

.form-group select:focus {
    outline: none;
    border-color: var(--aws-primary);
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.15);
}

.form-group select:hover {
    border-color: rgba(255, 153, 0, 0.4);
}

.btn-back {
    background: linear-gradient(135deg, var(--wipro-primary) 0%, var(--wipro-secondary) 100%);
    color: var(--wipro-white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

.btn-back:hover {
    background: linear-gradient(135deg, var(--wipro-secondary) 0%, var(--wipro-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--aws-primary) 0%, #E88B00 100%);
    color: var(--aws-white);
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    white-space: nowrap;
    height: 38px;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
}

.login-btn {
    background: linear-gradient(135deg, var(--aws-accent) 0%, #3a8bc7 100%);
    color: #ffffff;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    width: 100%;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(75, 156, 211, 0.2);
}

.btn-primary:hover, .login-btn:hover {
    background: linear-gradient(135deg, #3a8bc7 0%, var(--aws-accent) 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(75, 156, 211, 0.3);
}

/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 153, 0, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(75, 156, 211, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.login-header {
    background: #e3f2fd;
    border-bottom: 1px solid #e9ecef;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-header .header-brand {
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #e3f2fd;
}

.login-header .logo-container {
    margin-right: 0;
}

.login-header .header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-center {
    flex: 1;
    text-align: center;
}

.login-header .brand-text {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header .brand-text {
    text-align: center;
}

.header .brand-text h1 {
    color: var(--aws-primary);
    margin: 0;
}

.header .brand-text .brand-subtitle {
    color: #000000;
    margin-top: 2px;
}

.login-header .brand-text h1 {
    color: var(--aws-primary) !important;
    text-shadow: none;
}

.login-header .brand-subtitle {
    color: #6c757d !important;
}

.login-header .brand-text h1 {
    font-size: 1.4rem;
    color: var(--aws-primary);
    font-weight: 600;
    text-shadow: none;
}

.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    min-height: calc(100vh - 80px);
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 48px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2), 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 153, 0, 0.2);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--aws-primary) 0%, var(--aws-accent) 50%, var(--aws-primary) 100%);
}

.login-title {
    color: var(--aws-secondary) !important;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: -0.5px;
}

.aws-orange-text {
    color: var(--aws-primary) !important;
}

.login-subtitle {
    color: #6c757d;
    text-align: center;
    margin-bottom: 32px;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.4;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    transform: translateY(-8px) scale(0.85);
    color: var(--aws-primary);
}

.form-group input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:hover {
    border-color: rgba(255, 153, 0, 0.4);
}

.form-group label {
    display: block;
    color: #232F3E;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #d5dbdb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    position: relative;
    font-family: inherit;
}

.form-group input::placeholder {
    color: #9ca3af;
    font-style: normal;
    font-weight: 400;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--aws-primary);
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.15);
}

/* Industry Dashboard */
.main-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 102, 204, 0.1);
    border: 1px solid var(--border-color);
}

.industry-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.industry-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.12);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.industry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.18);
}

.editable-title {
    cursor: pointer;
    transition: all 0.2s ease;
}

.editable-title:hover {
    color: var(--aws-primary);
    text-decoration: underline;
}

.industry-name-input {
    background: #ffffff;
    border: 2px solid var(--aws-primary);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
    outline: none;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--aws-primary) 0%, var(--aws-accent) 100%);
}

.industry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
    border-color: var(--wipro-primary);
}

.industry-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--aws-primary);
    text-shadow: 0 2px 4px rgba(255, 153, 0, 0.3);
}

.industry-card h3 {
    color: var(--text-primary);
    margin: 8px 0 6px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.industry-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.industry-header h3 {
    margin: 0;
    text-align: center;
}

.industry-add {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--aws-accent);
    color: #ffffff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(75, 156, 211, 0.3);
    z-index: 2;
}

.industry-add:hover {
    background: #3a8bc7;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(75, 156, 211, 0.4);
}

.industry-delete {
    background: var(--wipro-danger);
    color: var(--wipro-white);
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.industry-delete:hover {
    background: #c82333;
    transform: scale(1.05);
}

.applications-section {
    background: linear-gradient(135deg, rgba(248, 252, 255, 0.9) 0%, rgba(240, 248, 255, 0.7) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 8px 32px rgba(0, 102, 204, 0.1);
    border: 1px solid rgba(0, 102, 204, 0.08);
}

.applications-section h2 {
    color: var(--wipro-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.no-data {
    text-align: center;
    color: var(--wipro-gray);
    font-size: 1.1rem;
    padding: 40px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: 2px dashed rgba(0, 102, 204, 0.2);
}

.no-urls {
    color: var(--wipro-gray);
    font-style: italic;
    text-align: center;
    padding: 10px;
}

.app-count {
    color: var(--text-secondary);
    margin: 6px 0 12px 0;
    font-size: 0.9rem;
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    display: inline-block;
}

.theme-checkbox {
    display: none;
}

.theme-label {
    display: flex;
    align-items: center;
    background: var(--wipro-white);
    border: 2px solid var(--wipro-border);
    border-radius: 25px;
    padding: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 60px;
    height: 30px;
    position: relative;
}

.theme-icon {
    font-size: 14px;
    transition: all 0.3s ease;
    position: absolute;
}

.theme-icon:first-child {
    left: 8px;
    opacity: 1;
}

.theme-icon:last-child {
    right: 8px;
    opacity: 0.3;
}

.theme-checkbox:checked + .theme-label {
    background: var(--wipro-primary);
    border-color: var(--wipro-primary);
}

.theme-checkbox:checked + .theme-label .theme-icon:first-child {
    opacity: 0.3;
}

.theme-checkbox:checked + .theme-label .theme-icon:last-child {
    opacity: 1;
    color: white;
}

.theme-label::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--wipro-primary);
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-checkbox:checked + .theme-label::before {
    transform: translateX(30px);
    background: white;
}

.view-btn {
    background: linear-gradient(135deg, var(--aws-accent) 0%, #3a8bc7 100%);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(75, 156, 211, 0.3);
    font-size: 0.95rem;
}

.view-btn:hover {
    background: linear-gradient(135deg, #3a8bc7 0%, var(--aws-accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(75, 156, 211, 0.4);
}

/* Application Cards */
.application-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.application-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 320px;
}

.app-header {
    flex-shrink: 0;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.app-description {
    flex: 1;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: justify;
    overflow-y: auto;
    margin-bottom: 15px;
    min-height: 0;
    word-wrap: break-word;
}

.url-buttons {
    flex-shrink: 0;
    height: 50px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 15px;
}

.app-footer {
    flex-shrink: 0;
    height: 25px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.application-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--aws-success) 0%, var(--aws-primary) 50%, var(--aws-accent) 100%);
}

.application-card:hover {
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
    transform: translateY(-2px);
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.app-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-edit {
    background: var(--aws-accent);
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 5px;
}

.btn-edit:hover {
    background: #3a8bc7;
    transform: scale(1.05);
}

.btn-delete {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #6c757d;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #495057;
}

.app-header h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.app-type {
    background: rgba(0, 102, 204, 0.1);
    color: var(--wipro-primary);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.app-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.more-btn {
    background: none;
    border: none;
    color: var(--aws-primary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 5px;
    text-decoration: underline;
    padding: 0;
    transition: color 0.2s ease;
}

.more-btn:hover {
    color: var(--aws-secondary);
}

.url-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 15px;
}

.url-btn {
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.demo-btn {
    padding: 4px 8px;
}

.ppt-btn {
    padding: 4px 8px;
}

.video-btn {
    padding: 4px 8px;
}

.demo-request-btn {
    padding: 4px 6px;
}

.demo-btn-gray {
    padding: 4px 6px;
}

.demo-btn {
    background: #f0fff4;
    color: #38a169;
    border: 2px solid #38a169;
    white-space: nowrap;
}

.ppt-btn {
    background: #fff5f0;
    color: #ed8936;
    border: 2px solid #ed8936;
    white-space: nowrap;
}

.video-btn {
    background: #faf5ff;
    color: #9f7aea;
    border: 2px solid #9f7aea;
    white-space: nowrap;
}

.reference-btn {
    background: #f0f9ff;
    color: #0369a1;
    border: 2px solid #0369a1;
}

.demo-request-btn {
    background: #fff8f0;
    color: #d97706;
    border: 2px solid #d97706;
    white-space: nowrap;
}

.demo-btn-gray {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #dee2e6;
    cursor: not-allowed;
    opacity: 0.7;
    white-space: nowrap;
}

.demo-btn-disabled {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
    white-space: nowrap;
}

.demo-btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

.shutdown-message {
    font-size: 0.75rem;
    color: #d97706;
    background: rgba(217, 119, 6, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 8px;
    text-align: left;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.url-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 47, 62, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 47, 62, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.2);
    border: 1px solid #e9ecef;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-content h2 {
    color: #232F3E;
    margin-bottom: 20px;
    font-weight: 600;
}

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

.modal-header h3 {
    color: #232F3E;
    margin: 0;
    font-weight: 600;
    font-size: 1.3rem;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.navigation-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px 0;
}

/* Breadcrumb */
.breadcrumb {
    color: var(--wipro-gray);
    font-size: 0.9rem;
}

.breadcrumb span {
    color: var(--wipro-primary);
    font-weight: 500;
}

.auth-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
}

.auth-link {
    color: var(--aws-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    position: relative;
}

.auth-link:hover {
    color: var(--aws-secondary);
    background: rgba(255, 153, 0, 0.08);
    text-decoration: none;
    transform: translateY(-1px);
}

.auth-separator {
    color: #dee2e6;
    font-weight: 300;
}

/* Error and Success Messages */
.error {
    background: #fef2f2;
    color: #dc2626;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    margin-top: 16px;
    font-weight: 500;
    font-size: 0.9rem;
}

.success {
    background: #f0fdf4;
    color: #16a34a;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
    margin-top: 16px;
    font-weight: 500;
    font-size: 0.9rem;
}

.hidden {
    display: none;
}

.dashboard-header {
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-text {
    text-align: left;
}

.dashboard-header h2 {
    color: var(--aws-secondary);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.dashboard-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0;
}

.btn-cancel {
    background: var(--wipro-white);
    color: var(--wipro-gray);
    border: 2px solid var(--wipro-border);
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-cancel:hover {
    background: var(--wipro-light);
    border-color: var(--wipro-gray);
    color: var(--wipro-dark);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--aws-accent) 0%, #3a8bc7 100%);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(75, 156, 211, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #3a8bc7 0%, var(--aws-primary) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(75, 156, 211, 0.4);
}

.btn-secondary:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 3px 10px rgba(75, 156, 211, 0.3);
}

.result {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 1000;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.demo-link {
    color: var(--aws-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.demo-link:hover {
    color: var(--aws-secondary);
    background: none !important;
}

.btn-action {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    margin-right: 5px;
    transition: all 0.2s ease;
}

.start-btn {
    background: #28a745;
    color: white;
}

.start-btn:hover {
    background: #218838;
}

.stop-btn {
    background: #dc3545;
    color: white;
}

.stop-btn:hover {
    background: #c82333;
}

/* Search Functionality Styles */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.search-box {
    flex-shrink: 0;
}

.search-input:focus {
    border-color: var(--aws-primary) !important;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.15);
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 2px solid #e2e8f0;
}

.search-results-header h3 {
    color: var(--aws-secondary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.search-results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 1rem;
}

.solution-card {
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15) !important;
}

/* Demo Links Section */
.demo-links-section {
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.12);
    border: 1px solid var(--border-color);
}

.demo-links-section h3 {
    color: var(--aws-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.demo-links {
    display: flex;
    gap: 50px;
    justify-content: center;
    flex-wrap: wrap;
    /* text-decoration: underline;
    text-decoration-color: white; */
}

.marketplace-link {
    background: linear-gradient(135deg, var(--aws-accent) 0%, #3a8bc7 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(75, 156, 211, 0.3);
    font-size: 0.95rem;
    cursor: pointer;
}

.marketplace-link:hover {
    background: linear-gradient(135deg, var(--aws-primary) 0%, #E88B00 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 153, 0, 0.4);
    text-decoration: none;
    color: #ffffff;
}

/* Admin Page Specific Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    background: var(--bg-secondary);
    min-height: 100vh;
}

.back-navigation {
    padding: 0 0 0 0;
    margin: 0;
}

.back-navigation .btn-secondary {
    margin-bottom: 1rem;
}

.main-content {
    padding: 2rem;
}

.add-user-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.add-user-section h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.users-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.users-section h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.users-table th,
.users-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.users-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.users-table tbody tr:hover {
    background: #f8fafc;
}

.tag {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.tag-admin {
    background: #fef3c7;
    color: #92400e;
}

.tag-editor {
    background: #dbeafe;
    color: #1e40af;
}

.tag-viewer {
    background: #f3f4f6;
    color: #374151;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.url-form {
    background: transparent;
    padding: 0;
}

.header-info {
    display: flex;
    flex-direction: column;
}

.header-info h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.header-info p {
    margin: 0.25rem 0 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.username {
    font-weight: 500;
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-brand {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .user-info {
        margin-left: 0;
        justify-content: center;
    }
    
    .industry-cards, .application-cards {
        grid-template-columns: 1fr;
    }
    
    .login-card {
        margin: 20px;
        padding: 30px 25px;
    }
    
    .header-actions {
        flex-direction: row;
        gap: 1rem;
        width: 100%;
        justify-content: flex-end;
    }
    
    .search-box input {
        width: 100% !important;
    }
    
    .search-results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .search-results-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .header-brand {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .brand-section {
        justify-content: center;
    }
    
    .user-info {
        justify-content: center;
    }
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.form-actions .btn-cancel {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #dee2e6;
}

.form-actions .btn-cancel:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
}

/* Source Group Tag */
.source-tag {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0369a1;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    display: inline-block;
    margin-right: 0.5rem;
}

.app-footer {
    margin-top: auto;
    padding-top: 0.75rem;
    display: flex;
    justify-content: flex-end;
}

.source-tag-small {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0369a1;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
    display: inline-block;
    opacity: 0.8;
}

/* Password Change Form Styles */
.password-change-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 102, 204, 0.15);
    border: 1px solid var(--border-color);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.password-change-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--aws-primary) 0%, var(--aws-accent) 50%, var(--aws-success) 100%);
}

.password-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.password-header h2 {
    color: var(--aws-secondary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.password-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
}

.password-form {
    margin-bottom: 24px;
}

.password-form .form-group {
    margin-bottom: 28px;
}

.password-form input {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    font-family: inherit;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.password-form input:focus {
    outline: none;
    border-color: var(--aws-primary);
    box-shadow: 0 0 0 4px rgba(255, 153, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.password-form label {
    display: block;
    color: var(--aws-secondary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
    letter-spacing: 0.2px;
}

.password-requirements {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 28px;
    border-left: 4px solid var(--aws-accent);
}

.password-requirements p {
    color: var(--aws-secondary);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.password-requirements ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
}

.password-requirements li {
    margin-bottom: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.password-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}

.password-btn {
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-cancel-btn {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #dee2e6;
}

.password-cancel-btn:hover {
    background: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
}

.password-submit-btn {
    background: linear-gradient(135deg, var(--aws-primary) 0%, #E88B00 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
}

.password-submit-btn:hover {
    background: linear-gradient(135deg, #E88B00 0%, var(--aws-primary) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
}

.password-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 153, 0, 0.4);
}

#passwordChangeSection .error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    margin-top: 20px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
}

#passwordChangeSection .success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #16a34a;
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #16a34a;
    margin-top: 20px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.1);
}